Home Page › Forums › BizTalk 2004 – BizTalk 2010 › hexadecimal 0x40
- This topic has 5 replies, 1 voice, and was last updated 8 years, 3 months ago by
community-content.
-
AuthorPosts
-
-
May 22, 2006 at 6:30 PM #14710
Maybe you need to URL Encode it first. Make the @ a %40 I think.
You could use a helper .net component to do that.
Not real sure if that will work and it might cause you other problems down the road.
-
May 25, 2006 at 9:52 AM #14711
What is xFrom?
-
June 6, 2006 at 8:24 PM #14712
This higihlights one of the problems of building your own Xml usng strings rather than an Xml parser.
When you assign a string value to a node using a parser it should be automatically excaped.
i.e. John Walker<[email protected]> becomes John <return>Walker<[email protected]%gt;</return>This will makes handling the Xml much easier than using CDATA
To do this:
[code:1:aad87f017b]xDoc.LoadXml(\"<ns0:returnValue xmlns:ns0=’http://LeadMgmtEmail.returnValue’><return/></ns0:returnValue>\");
xMessage = xDoc;
xpath(xMessage, \"/*[local-name()=’returnValue’ and namespace-uri()=’http://LeadMgmtEmail.returnValue’]/*[local-name()=’return’ and namespace-uri()=”]\") = Email(POP3.From);[/code:1:aad87f017b]-
May 26, 2006 at 2:55 PM #14713
What about adding a CDATA tag around your email.
If the email has offending data in it, this shoudl prevent the error.xDoc.LoadXml(\”<ns0:returnValue xmlns:ns0=’http://LeadMgmtEmail.returnValue’><return><![CDATA[
\”+Email(POP3.From)+\”]]>
</return></ns0:returnValue>\”);Can you send an example of the value of your email? Does it contain XML that has elements names with spaces in it?
-
May 18, 2006 at 2:56 PM #14714
Hello,
i get message from pop3 adapter and trying to access the context. While accessing header information (with Email(POP3.From)) and later assignemnt to the XmlDocument I get following error:
\”The ‘@’ character, hexadecimal value 0x40, cannot be included in a name.\”Code part in message assignment:
xFrom = System.String.Format(Email(POP3.From));xDoc = new System.Xml.XmlDocument();
xDoc.LoadXml(\”<ns0:returnValue xmlns:ns0=’http://LeadMgmtEmail.returnValue’><return>\”+Email(POP3.From)+\”</return></ns0:returnValue>\”);
conEmail = xDoc;P.S. the conEmail is defined in a Schema, the return-tag is set to anyType.
-
June 6, 2006 at 1:57 PM #14715
Hi all,
the problem was, that I returned a xml schema as output of orchestration. The format of Email was e.g. John Walker<[email protected]>
If I put this \”string\” in a xml document then the tags will be interpreted as an extension of xml document. My solution was to search in a string for position of \”<\” and for the position of \”>\” and additionally to read the value between these to values.
they idea with wrapping in CDATA seems to be very good. I should try it.
tox.
-
-
-
-
-
-
AuthorPosts
- The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.