I need to find a way to validate a document against xsd which is not referenced from xml. I have taken sample files from w3schools:
xml:
<?xml version="1.0"?>
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>
xsd:
<?xml...
Another thingie, I have inserted
rS.last();
System.out.println("last " +rS.getRow());
(ofcourse afterwards I move back to first row)
right after creation of resultset and what Im geting out is that there is allways only 1 row returned
2 sedj&Dian I get exactly same thing both with accessing column by number and using diff statement. For reference I am presently using
createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);
the code looks EXACTLY like I posted - I create result set, if at least 1 row exists I move to it and try to read same column from that row several times over which admitedly can (and after this accident I might add should) be avoided. I heard that jdbc-odbc bridge is not production quality and...
That is if we AssUMe that what we are trying to do is to loop through a result set. Which I wasnt. In my case I was trying to acces same "cell" several times over.
No, in official java forums I recieved reply:
Which I interpret in a way that when you access same column several time you have to be ready that it will randomly freak out.
Hello ppl. I have a little querry on my hands
System.out.println(query);
rS = db.executeQuery(query);
if (rS.next()) {
System.out.println("Data: " + rS.getString(attribName));
System.out.println("Data: " + rS.getString(attribName))...
Any idea how do I do if Im not sure what action "*/-+" will be required if any at all? Only thing I can figure is to myself make some sort of "math" node which will have relevant attribute
Works. Xept I swaped "form" for "text()" in the expressions but thats prolly cause tag-name in result isnt float (I left it as float to simplify the example)
value="{7 * 4}"
well how do I do that? I am trying value="{normalize-space(text())}"
but as result I simply get value="47*4" rather then the evaluation of the expression
What if I need an atribute and not text tag? I better give example I suppose. I have a node
<float>47*4</float>
what I want in output is
<float value="188">188</float>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.