XML opening and closing tag validation

Dear Readers

I have a XML file ,i am loading xml file in AX and want to validate XML by opening and closing tag in X++ code.

Please share your opinion.

What do you mean by “validate by opening and closing tag”?

Anyway, you might be interested in XmlDocument.load() and XmlDocument.parseError() methods.

Dear Martin

Thanks for reply

What do you mean by “validate by opening and closing tag”?

means

opening tag=<>, closing tag = </>

i have to validate xml file through X++ code like opening tag

then closing tag

should be there.

how can i validate tag in X++.

I know what a tag is, many thanks, but I still don’t know what you need. Try to formulate it like this:

“I want to check whether a file contains an ATUL tag.”

or

“I want to check whether a file contains an ATUL element with a string content.”

or

“I want to check whether a file contains a well-formed XML with ATUL as a root element.”

An example of expected input may help too.