Hello everyone, I need some really big help here as I am starting to go a little crazy in my issue. What i need to do is remove the prefix from the following XML Data (typ: and ser:). Issue is that not only do i need to remove the prefix but the prefix always changes. Can someone help please and thank you.
Possible way i could think of to use string replace function. Use inbuilt service “[FONT=Arial][SIZE=5][FONT=Arial][SIZE=5]pub.string:replace[/SIZE][/FONT][/SIZE][/FONT]” to replace the unwanted string with the desired one.
Hope it will help. Thanks in Advance for your feedback.
I’m assuming that the XML posted is just a fragment of a larger document?
Since the prefixes are identifying different namespaces it really isn’t valid to simply remove them. When calling xmlNodeToDocument, specify nsDecls to translate the prefixes to something known.
From there, you can map the document to a target structure or define a document type that mirrors the source type but without the prefixed names. Then map the fields from the source document to the no-prefix document.