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@example.com> becomes John <return>Walker<firstname.lastname@example.org%gt;</return>
This will makes handling the Xml much easier than using CDATA
To do this:
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.
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
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();
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
the problem was, that I returned a xml schema as output of orchestration. The format of Email was e.g. John Walker<email@example.com>
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.
- The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.