Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SGML to XML

Status
Not open for further replies.

radugb

Technical User
Dec 28, 2006
12
US
I have a whole lot of files in .sgm format that I need to convert over to XML so the new version of the program they go with will recognize them. I have no idea how to write XML or SGML and am hoping that there may be some sort of GUI conversion tool (of the drag and drop method) that can do it for the most part automatically. Any ideas? Thx, RaduG

ps: when I mean a lot, I mean about 21000 file each about 1.5kb
 
My progress is the same. I have begun the long process of converting all 21000 files to XML (know of any way I can batch convert all the files in a single folder?), and am getting basically the same errors with that of the first conversion stated above. What would I change in those lines in the SGML file to make them convertable for SX? Thx, Matt Henry
 
Here's one of my error logs, most of them contain content very similar to this. What should I change in the SGML so SX will be able to convert these lines? Thx, RaduG

sx.exe:V56117001.sgm:1:71:E: invalid formal public identifier "//Volvo Construction Equipment//DTD VCESI03//EN": invalid public text class
sx.exe:V56117001.sgm:1:72:W: cannot generate system identifier for public text "//Volvo Construction Equipment//DTD VCESI03//EN"
sx.exe:V56117001.sgm:2:0:E: reference to entity "VCESI" for which no system identifier could be generated
sx.exe:V56117001.sgm:1:0: entity was defined here
sx.exe:V56117001.sgm:2:0:E: DTD did not contain element declaration for document type name
sx.exe:V56117001.sgm:3:12:E: there is no attribute "LANG"
sx.exe:V56117001.sgm:3:16:E: element "VCESI" undefined
sx.exe:V56117001.sgm:3:25:E: character "_" not allowed in attribute specification list
sx.exe:V56117001.sgm:3:25:E: element "PRODUCT" undefined
sx.exe:V56117001.sgm:3:48:E: element "SERVINFOTYPE" undefined
sx.exe:V56117001.sgm:3:55:E: character "_" not allowed in attribute specification list
sx.exe:V56117001.sgm:3:55:E: element "INTRO" undefined
sx.exe:V56117001.sgm:3:73:E: element "SERVINFO" undefined
sx.exe:V56117001.sgm:3:92:E: element "TITLE" undefined
sx.exe:V56117001.sgm:3:114:E: element "PARA" undefined
sx.exe:V56117001.sgm:3:120:E: element "PTXT" undefined
sx.exe:V56117001.sgm:3:153:E: general entity "ldquo" not defined and no default entity
sx.exe:V56117001.sgm:3:170:E: general entity "rdquo" not defined and no default entity
sx.exe:V56117001.sgm:8:75:E: element "PARA" undefined
sx.exe:V56117001.sgm:8:81:E: element "PTXT" undefined
sx.exe:V56117001.sgm:9:84:E: element "PARA" undefined
sx.exe:V56117001.sgm:9:90:E: element "PTXT" undefined
sx.exe:V56117001.sgm:9:183:E: element "PARA" undefined
sx.exe:V56117001.sgm:9:189:E: element "PTXT" undefined
sx.exe:V56117001.sgm:11:45:E: character "_" not allowed in end tag
sx.exe:V56117001.sgm:11:78:E: character "_" not allowed in end tag
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top