• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

XML

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a 2 page rtf document that I used a third party tool called Upcast to convert it to XML.

Using this tool does not create a node to uniquely separate each page. I would like to be able to take the second page and copy and append to the xml to create a 4 page document.

Before generating the xml, I added a bookmark to identify the start of the page (repeatPage) and the end of the page(end_repeatPage) I wanted to copy. These bookmarks are children to a par tag. How would I be able to get the sample provided below parsing the entire xml document?

Below is the xml for the second page:

<par class="Normal" style="font-family: "Arial Narrow"; \-ilx-font-family-generic: "sans-serif";"><target id="repeatPage" /><pagestart pagenumber="2" /><endtarget id="repeatPage" /></par>
<par class="Normal" style="font-weight: bold;">TO: </par>
<par class="Normal" style="font-weight: bold;"> </par>
<par class="Normal" style="margin-left: 12.7mm; text-indent: 12.7mm; font-weight: bold;">REyTON, VA 20190</par>
<par class="Normal" style="font-weight: bold;"></par>
<par class="Normal" style="font-weight: bold;">ATTN: <target id="multiPage_attentionNames" /><endtarget id="multiPage_attentionNames" /></par>
<par class="Normal" style="font-weight: bold;">FAX:</par>
<par class="Normal" style="font-weight: bold;"></par>
<par class="Normal" style="font-weight: bold;">FROM: SARAH TAPPER<inline style="background-color: #ffff00;"></inline></par>
<par class="Normal" style="font-weight: bold;">DATE: September 15, 2004</par>
<par class="Normal" style="font-weight: bold;"></par>
<par class="Normal" style="font-weight: bold;">SUBJECT: Request for quotation </par>
<par class="Normal" style="font-weight: bold;">CLIENT: FACILITY LOGIX, LLC 4144749502<inline style="background-color: #ffff00;"></inline></par>
<par class="Normal" style="font-weight: bold;">EFF. DATE: 09/01/2004</par>
<par class="Normal" style="font-weight: bold;"><target id="end_repeatPage" /><endtarget id="end_repeatPage" /></par>
 
We noticed he had no friends. So we gave him this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic