Skip to main content
Question

GML clean up

  • September 9, 2015
  • 2 replies
  • 14 views

fmelizard
Safer
Forum|alt.badge.img+22
Hy,

 

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?
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

david_r
Celebrity
  • September 10, 2015
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

fmelizard
Safer
Forum|alt.badge.img+22
  • Author
  • Safer
  • September 11, 2015
Thanks for reply. I used solution from this  topic: https://knowledge.safe.com/AnswersQuestionDetail?id=906a0000000cndMAAQ