I have same problem with save data to GML. I need to validate this data with xsd shema before writing. But I have problem with empty elements, how to clean up empty elements before writing GML?
Hi
If you can pass the XML through the XMLFormatter, it has an option to remove empty elements.
You can also chain a couple of StringReplacers, like this:
This will remove empty elements of type
<SomeElement />
and
<SomeElement></SomeElement>
David
Reply
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.