Reading Revision Tables from DWFs By Parsing XML

Reading Revision Tables from DWFs By Parsing XML

richard.joseph.pollak
Advocate Advocate
308 Views
0 Replies
Message 1 of 1

Reading Revision Tables from DWFs By Parsing XML

richard.joseph.pollak
Advocate
Advocate

I have a script that retrieves information from revision tables in *.dwf files by opening them as *.zip files and parsing their xml. I am having difficulty understanding how to tell when a table entry has a line break.

 

Here is an example of a revision that has a line break. The line break should be after "PART # WAS".

 

<dwf:Feature id="m1GcNBX01E+Q__B_7BPQag">
  <dwf:Properties id="Z0LuN7E7v0GiGcTr0LxxRg">
    <dwf:Property value="B" name="REV"/>
    <dwf:Property value="ABC" name="BY"/>
    <dwf:Property value="11-16-10" name="DATE"/>
    <dwf:Property value="PART123 WAS PART234. PART # WASASSY123. ADDED NOTE 3." name="DESCRIPTION"/>
  </dwf:Properties>
</dwf:Feature>

Revs.JPG

When revision B is pulled into my database from the xml, the line break is not included. Instead I get "PART123 WAS PART234. PART # WASASSY123. ADDED NOTE 3."

 

Is there a better way to retrieve revision table information from a *.dwf file than parsing the xml? If not, does anybody know if there is a way to detect line breaks in the table strings? I can't figure out if that information is accessible and how to find it if it is.

 

0 Likes
309 Views
0 Replies
Replies (0)