The current programming and development are mostly object-oriented, so using XML to express data can make data processing and dissemination very convenient. To this end, today Xiaobian share with you Oracle access to XML format data, because you may encounter some trouble when using XML to store data, so this tutorial should pay special attention and patience.
Most of the examples on the Internet are wrong
The most important thing is to set the label representing ROW to rowTag, for example:
aaaa
bbbb
< If your table is
table aaa
(
aaa varchar(20),
bbb varchar(20)
)
Then specify which label is the beginning of the record. Here you have to specify
save.setRowTag("record");
Generally from the original table The resulting XML is named with fixed rowsettag and rowtag.
ROWSET and RWO
For example:
aaaa
bbbb
But before you get the string, you can specify the name you want:
qry.setRowSetTag("TABLENAME");
qry.setRowTag("RECORDNAME");
This is Will get
aaaa
bbbb
So when you write in, just specify the corresponding label as ROWTAG:
save.setRowTag(" RECORDNAME");
save.insertXML(xml); Just OK.
Also, pay special attention to XML is case sensitive, your RECORDNAME and recordname are two different tags. ,
XML helps simplify the persistence of objects and makes data persistence a common development process. By serializing the data object into an XML document, you can create an object document and then use the BLOB field type to conveniently store the XML document in the database.
We all know that the newly installed WinXP system is very fast to use, dont feel very card! However,
The main function of the control panel is to complete some basic configuration of the current operat
system folder, is the folder with WindowsXP system, usually this folder is placed in the C drive by
In the process of using the computer, sometimes we may accidentally delete some fil
How to use PR2/PR2E in Windows environment
How does the control panel in the WinXP start menu disappear?
Don't worry about dealing with real and fake crashes? Experts will help you
WinXP system remote desktop connection is not a solution
How to get rid of stealth killers - computer radiation
How to make Windows XP theme tools and modifications
How does WinXP cancel boot disk scan? WinXP turns off the disk scan method
Teach you how to lose weight to 64-bit Windows XP system
How to clean up the address bar under WinXP system?
Windows7 Frequently Asked Questions: Primary Question and Answer 8 Cases
How to add a library in the home folder in win10 system
Old machine configuration properly optimized to run Vista system
Windows 7 system super administrator open method
Easily solve the Windows 7 system sounds suddenly big and small
Teach you how to register fso under windows
Win10 first anniversary update camera "Blink" how to do?