Hello!
How to declare namespace in OXmlPDOM or OXmlCDOM?
Anonymous
You seem to have CSS turned off. Please don't fill out this field.
IMO you just can declare the tags. Doesn't it work?
XmlNode has NameSpaceExists(const aNameSpaceURI, aNameSpacePrefix: OWideString) how to declare in node NameSpaceURI with NameSpacePrefix?
Demo file attached.
It work
doc := TXMLDocument.Create(); doc.DocumentElement := doc.CreateElement('root'); doc.DocumentElement.Attributes['xmlns:ns2'] := 'urn://x-artefacts-rosreestr-ru/commons/complex-types/numbers/1.0'; nd := doc.DocumentElement.AddChild('ns2:sssss'); ShowMessage(nd.NameSpaceURI);
Hello!
How to declare namespace in OXmlPDOM or OXmlCDOM?
IMO you just can declare the tags. Doesn't it work?
XmlNode has NameSpaceExists(const aNameSpaceURI, aNameSpacePrefix: OWideString) how to declare in node NameSpaceURI with NameSpacePrefix?
Demo file attached.
It work