Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: OracleXMLSave problem + abstract datatypes
The problem is that XML SQL is looking for the XML to be in its canonical ROWSET/ROW format.
> <item>
> <header>
> <name>Chris</name>
> <id>1</id>
> </header>
> <body>
> <description>perturbed</description>
> <part>2</part>
> </body>
> </item>
>
>
> The error that I receive is this:
>
> Exception in thread "main" oracle.xml.sql.OracleXMLSQLException: No
> rows to modify -- the row enclosing tag missing. Specify the correct
> row enclosing tag.
You need the document to look like:
<ROWSET>
<ROW>
<item>
<header> <name>Chris</name> <id>1</id> </header> <body> <description>perturbed</description> <part>2</part> </body>
and remember to call setIgnoreCase(true) if you want the tag names to not be case-sensitive.