Validating the XML
Before you try to build a document from a file or string, you can
test whether the XML is well formed or, optionally, whether it conforms
to a DTD or Schema using the XMLParseFile or XMLParseString PowerScript
functions. For example, this code tests whether the XML in a file is
well formed:
|
1 2 |
long ll_ret ll_ret = XMLParseFile("c: empmydoc.xml", ValNever!) |
By default, these functions display a message box if errors occur.
You can also provide a parsingerrors string argument to handle them
yourself. For more information about these functions, see the section called “XMLParseFile” in PowerScript Reference and
the section called “XMLParseString” in PowerScript Reference.
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest