Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
1 reply
Subscribers
7 subscribers
Views
1393 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
The user wants to load an xml document, i have to validate that the structure is
gustavov609
over 11 years ago
The user wants to load an xml document, i have to validate that the structure is correct, How to validate an XML is correct?
Example (Wrong xml, needed to / and name-->Name):
<Document>
<name>Viloria Leon</Name>
<Fecha>15/10/1975<Fecha>
</Document>
Regards,
Gustavo...
OriginalPostID-105407
OriginalPostID-105407
Discussion posts and replies are publicly visible
Parents
0
Eduardo Fuentes
Appian Employee
over 11 years ago
There's no out of the box to validate an XML. The xpathsnippet() function will fail and throw an error if the XML is not well-formed but that won't help with your requirement since that will mean the node will fail and you won't be able to "catch" and handle that exception.
Since this is an XML related requirement you should be able to find libraries online or even sample code to validate an XML in Java and then build your own custom function. Here's one example
stackoverflow.com/.../whats-the-best-way-to-validate-an-xml-file-against-an-xsd-file
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Eduardo Fuentes
Appian Employee
over 11 years ago
There's no out of the box to validate an XML. The xpathsnippet() function will fail and throw an error if the XML is not well-formed but that won't help with your requirement since that will mean the node will fail and you won't be able to "catch" and handle that exception.
Since this is an XML related requirement you should be able to find libraries online or even sample code to validate an XML in Java and then build your own custom function. Here's one example
stackoverflow.com/.../whats-the-best-way-to-validate-an-xml-file-against-an-xsd-file
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data