Skipping empty tags?

Discuss XML import/export in QuarkXPress 8 & 9 (and before).

If you are interested in newer XML publishing formats that Quark offers, then please contact us about Modifier XML (QuarkXPress Documents as XML) in QuarkXPress Server or about Quark XML Author.
Posts: 0
Joined: 25 Jun 2009, 02:31

Skipping empty tags?

Post by Christina » 02 Jul 2009, 22:31

Good morning :)
I'm currently working on a rather huge project and need to use XML on it. Well, so far everything seems to work just fine.
My question is, though, if it is possible to skip empty elements/tags/placeholder?
Lets pretend my XML looks like this:


Now, I have a second guy in that XML-file, who has only one hobby, so would be emtpy. But I already use a placeholder for , so Quark gives me an emtpy line.
It wouldn't be a problem if it would always be only one empty line, but my list needs about 8 "hobby"-elements and has roughly 300 people in it =( And the always needs to be at the end of the list.
So, is it possible to tell Quark (7.31) "if you would have an empty line there, ignore it and go on with the next filled element"?

I'd be happy if someone could help me with this =J
- Christina

elpy zee
Posts: 170
Joined: 26 Oct 2007, 04:20

Skipping empty tags?

Post by elpy zee » 02 Jul 2009, 23:57

Is it not possible to strip out the empty lines before the xml gets to Quark? This would be easy to do in Textwrangler or with perl. Only the paragraph return needs to be removed; the tags could be preserved and the return added back later with another search or script, if you need to export and re-use the document.


Return to “QuarkXPress 8 & 9: XML Import/Export - discontinued”