-
I am trying XSD validation where the XML is a child node from SOAP request XML, while passing the selected XmlElement to XSD validator getting error as it is taking entire SOAP request XML document for validation, not selected Element. Please suggest how to achieve it. Code:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The setter of XmlDocument.root could move node from other document as its own root. Example: const original = XmlDocument.fromString('<container><content>hello</content></container>');
const content = XmlDocument.create();
content.root = original.get('/container/content');
console.log(content.toString());
console.log(original.toString());
This could extract a subtree as a document. I think validating a subtree is a validate requirement and extracting to a new document could be a workaround for now. |
Beta Was this translation helpful? Give feedback.
The setter of XmlDocument.root could move node from other document as its own root.
Example:
This could extract a subtree as a document.
I think validating a subtree is a validate requirement and extracting to a new document could be a workaround for now.
We'll track and address this requirement in a separate issue.