简体   繁体   中英

namespace not loading correctly

I am reading in an xml namespace through a local file. When I am outputting I am getting

 "


in the namespace. What am I doing wrong?

sample namespace looks like

  • xmlns="urn:rosettanet:specification:interchange:ShipmentReceiptNotification:xsd:schema:02.02" xmlns:dacc="urn:rosettanet:specification:domain:Procurement:AccountClassification:xsd:codelist:01.03"

I am loading the namespace as follows:

string contents = File.ReadAllText("loadNamespaces.txt");

XmlNode ShipmentReceiptNotification0Node = xmlDoc.CreateElement("ShipmentReceiptNotification", contents);

In the CreateElement method, the second parameter is only the namespace. Just the " urn:rosettanet:specification:interchange:ShipmentReceiptNotification:xsd:schema:02.02 " part.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM