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 |
long ll_ret<br>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 their descriptions in the PowerScript Reference or
the online Help.
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest