FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

DITA files and the xml reader

 
Post new topic   Reply to topic     Forum Index -> Juno
View previous topic :: View next topic  
Author Message
jicman



Joined: 22 Dec 2004
Posts: 298
Location: Rochester, NY

PostPosted: Sun Aug 08, 2010 8:33 pm    Post subject: DITA files and the xml reader Reply with quote

Greetings.

I have this dita code,

<!DOCTYPE map PUBLIC "-//OASIS//DTD DITA BookMap//EN" "bookmap.dtd">
<?Fm Condition DITA-Data AsIs NO_OVERRIDE show?>
<?Fm Condition DITA-Topicmeta AsIs NO_OVERRIDE show?>
<?Fm Condition FM8_SYSTEM_HIDEELEMENT AsIs NO_OVERRIDE hide?>
<?Fm Condition FM8_TRACK_CHANGES_ADDED Forest%20Green SINGLE_UNDERLINE show?>
<?Fm Condition FM8_TRACK_CHANGES_DELETED Red STRIKETHROUGH show?>
<?Fm BoolCondExpr "DITA-Data" State 0?>
<?Fm TrackChange Off PreviewState PREVIEW_OFF_TRACK_CHANGE?>
<map xmlns:ditaarch="http://dita.oasis-open.org/architecture/2005/" id="xd_07df6d7ccc4057ed-1fae641b-1285ae143c0--7ffe" ditaarch:DITAArchVersion="1.1" domains="(map mapgroup-d)

(topic indexing-d) (topic xnal-d)" class="- map/map ">
<title class="- topic/title ">Documentation</title>
<topicref navtitle="Introduction" href="Online_Introduction.ditamap" format="ditamap" class="- map/topicref "/>
<topicref navtitle="Job Submission" href="Online_Job_Submission.ditamap" format="ditamap" class="- map/topicref "/>
<topicref navtitle="Operating" href="Operator_guides/Operating_the_iGen4.ditamap" format="ditamap" class="- map/topicref "/>
<topicref navtitle="Managing Paper" href="Online_PaperGuide.ditamap" format="ditamap" class="- map/topicref "/>
<topicref navtitle="Maintenance and Problem Solving" href="Online_Maintenance.ditamap" format="ditamap" class="- map/topicref "/>
<topicref navtitle="Glossary" href="Online_Glossary.ditamap" format="ditamap" class="- map/topicref "/></map>

and I would like to read this through the XmlReader, but I don-t seem to get it to work. It works with other XML files, so I know is working, but how can I get the XML reader to read the code?

thanks

jose
Back to top
View user's profile Send private message
jicman



Joined: 22 Dec 2004
Posts: 298
Location: Rochester, NY

PostPosted: Sun Aug 08, 2010 9:15 pm    Post subject: Reply with quote

Never mind. I had to set the prohibitDtd setting to false. Now it works.
Code:

      XmlReaderSettings rs = new XmlReaderSettings();
      rs.prohibitDtd(false);
      scope reader = XmlReader.create(f,rs);


thanks.

jose
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Juno All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group