Skip to main content
Question

GML clean up


fmelizard
Safer
Forum|alt.badge.img+19
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?

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+19
  • Author
  • Safer
  • September 11, 2015
Thanks for reply. I used solution from this  topic: https://knowledge.safe.com/AnswersQuestionDetail?id=906a0000000cndMAAQ

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings