Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Structuring flat data

From: "Ariana" <ariana_paris@-----.--.-->
To: NULL
Date: 3/6/2006 1:25:00 AM
Thank you very much for the answer. There is a slight misunderstanding
on what I want to do with the breaks. For example, my example 2:

> Example 2:
> <xml>
>   <p>Aaaaaa</p>
>   <break/>
>   <p>Bbbbbb</p>
> </xml>

should be transformed as follows:

<xml>
  <section>
    <p>Aaaaaa</p>
  </section>
  <section>
    <p>Bbbbbb</p>
  </section>
</xml>

In other words, <section> elements should contain everything that
starts and/or finishes with a <break/> element. And therein lies the
rub, since the <break/> element only appears in between "sections", so
it is difficult to programmatically find the start of the first section
and the end of the last one.

The caveat about character encoding suggests that this may not be the
best solution in any case, since several of the files are in Spanish
and therefore contain a very high proportion of non-ASCII characters.
But aside from that, the SGML solution you proposed is interesting -
it's good to know it still has its uses even though I haven't used it
for years (over 10, in fact - boy, I feel old :)

Ariana



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent