- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
The replace () is to remove unwanted contents from the XML outside the XML-elements to avoid problems in the processing. Especially comments with multoiple line can cause that the import fails.
A XML like …
<?xml version="1.0" encoding="UTF-8"?>
<form1>
<page1>
<!-- This is a comment -->
<subform1>
<Name>John Doe</Name>
<Value1>Lorem Ipsum</Value1>
<Value2>Sit Amet</Value2>
</subform1>
</page1>
</form1>
… will be formatted into …
<form1><page1><subform1><Name>John Doe</Name><Value1>Lorem Ipsum</Value1><Value2>Sit Amet</Value2></subform1></page1></form1>
That's what the variable vImportXML will look like.
Views
Replies
0 Likes
Total Likes