This topic contains 4 replies, has 1 voice, and was last updated by chanarbon 7 years, 10 months ago.
-
AuthorPosts
-
darrenhillconsulting- Contributions: 0
- Level 1
- ☆
Is there anyway that I can format an XML string server-side. Currently, I’m POSTING the unformatted XML to
http://www.freeformatter.com/xml-formatter.html But I’d rather not do that.
This is a cached copy. Click here to see the original post. -
david.smith- Contributions: 0
- Level 1
- ☆
Is this for display of the XML client side?
-
david.smith- Contributions: 0
- Level 1
- ☆
-
darrenhillconsulting- Contributions: 0
- Level 1
- ☆
David,
No, its not for client-side. Its for an old PeopleSoft integration that requires the XML to be 2-character indented. Can you a imagine? A system that needs its xml visually appealing? At this point, I won’t argue.
*NOTE: I didn’t believe them when they first said the xml needed to be formatted, so I sent them a ‘regular’ xml. Sure enough, it error’d out indicating it was expecting characters at a certain position. LOL!
BTW, that vkbeautify did the trick. Thanks!
-
chanarbon- Contributions: 0
- Level 1
- ☆
How about this one, https://github.com/google/code-prettify
I tried doing nlapiStringToXML() to convert the XML string to XML data then convert it back to string using nlapiXMLToString() to see whether it formats properly but ended up back to the same XML string without n and t
-
AuthorPosts
You must be logged in to reply to this topic.