Skip to content

Commit 0cd7ec2

Browse files
foisysandreasprlic
authored andcommitted
/* Reading/writing objects as XML. */
1 parent f5458c8 commit 0cd7ec2

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

_wikis/BioJava:BioJavaXDocs.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2397,9 +2397,9 @@ XMLWriter(System.out, format);// writer.write(doc); </java>
23972397

23982398
Reading them back and saving them to the database is similar:
23992399

2400-
<java> Document doc = ...; // open an XML document with some kind of
2401-
org.dom4j.io.SAXReader List results = doc.selectNodes("//docref"); //
2402-
use the node-name from the class tag of DocRef.hbm.xml mapping file
2400+
<java> // open an XML document with some kind of org.dom4j.io.SAXReader
2401+
Document doc = ...; // use the node-name from the class tag of
2402+
DocRef.hbm.xml mapping file List results = doc.selectNodes("//docref");
24032403

24042404
Transaction tx = session.beginTransaction(); Session dom4jSession =
24052405
session.getSession(EntityMode.DOM4J);

_wikis/BioJava:BioJavaXDocs.mediawiki

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2293,8 +2293,10 @@ writer.write(doc);
22932293
Reading them back and saving them to the database is similar:
22942294

22952295
<java>
2296-
Document doc = ...; // open an XML document with some kind of org.dom4j.io.SAXReader
2297-
List results = doc.selectNodes("//docref"); // use the node-name from the class tag of DocRef.hbm.xml mapping file
2296+
// open an XML document with some kind of org.dom4j.io.SAXReader
2297+
Document doc = ...;
2298+
// use the node-name from the class tag of DocRef.hbm.xml mapping file
2299+
List results = doc.selectNodes("//docref");
22982300

22992301
Transaction tx = session.beginTransaction();
23002302
Session dom4jSession = session.getSession(EntityMode.DOM4J);

0 commit comments

Comments
 (0)