I am a rookie just started XML about a week ago, so I apologize if this is an easy question but I have searched on the Stack and cant find my answer. This is what I currently send
<BURGER_REQUEST_WHOPPERVersionID_2.4 _ActionType="No Pickle" _CommentText="">
</BURGER_REQUEST_WHOPPERVersionID_2.4>
This is what the company said I need to be sending
<BURGER_REQUEST _WHOPPERVersionID_2.4 _ActionType="No Pickle" _CommentText="">
</BURGER_REQUEST>
This is is my code using C#.
XElement burgerRequestNode = new XElement("BURGERREQUESTVersionID_2.4",
new XAttribute("_ActionType", "Original"),
new XAttribute("_CommentText", string.Empty));
XElement productNode = new XElement("_PRODUCT",
new XAttribute("_CategoryDescription", burger.ProductDescription));
XElement typeNode = new XElement("_TYPE",
new XAttribute("_Identifier", burger.ProductIdentifier));
productNode.Add(typeNode);
requestNode.Add(productNode);
No comments:
Post a Comment