Raj Kamal wrote:
The contents of the XML document would not be printed if you use System.out.println(). It would only print the Object along with the HashCode. You would have to iterate through the contents to get a more meaningful output.[/quotit
iterate means what.actually i want convert xml to xsl document and i want to get the difference between two xml files.
can suggest me please.
Raj Kamal wrote:
Iterate as in loop through elements in the XML.
Convert XML to XSL???![]()
Differentiate two XML files???![]()
Raj Kamal wrote:
Create a FileWriter object and pass the reference to generateXSL().
Raj Kamal wrote:
Cummon now, give a path/file-name to FileWriter().
g tsuji wrote:[0]
>here i am not understanding how to see x1, its a xmlDocument.
[1]
>so i want to know the usage of those methods.how can use it.and for ex: in this package
generateXSL
public void generateXSL(java.io.Writer out)
throws java.io.IOException,
java.lang.NullPointerException
You have also member functions which may be more useful in different settings, such as generateXSLDoc() or generateXSLFile()...
These are just for illustration of how to get XMLDocument or XMLDiff perform. I don't see any other way than studying their documentation. Speculation and guessing do not get you far.
Raj Kamal wrote:
This has nothing to do with XML. You have to give a full path and filename when you create the FileWriter object (out).
Please use CODE tags when posting code otherwise it is so very hard to read.
g tsuji wrote:x1 and a are both your notations, not even mine. I don't what you are talking about... a.generateXSL() and x1, can we mix them all up?
g tsuji wrote:>or else tell me code how to use generateXSL(); and where i will get xsl.
If I can recap what I said and condense it to one line:
Have you looked at System.out? (This line is positioned after a.diff() had been called.) If you had not and said it not working or something, there is no reason I am full of joy and say that's cool. I might or I might not be irritated --- that's all your words that have no concern as far as I'm concerned.
If you're not in a position to have a System.out console to look at, you may persist its output to a file for inspection. At the same time, I can show you more options the class exposed for your convenience.
or any of their variants as long as their constructor accepts.
g tsuji wrote:>and tell me a.generateXSLDoc(),a.generateXSLFile().
What do you mean by that, telling you?
>what is the difference between two methods. i am getting same output for these two.
Watch carefully the .print() method is used following generateXSLDoc() because generateXSLDoc() return an XMLDocument which is the xslt document (itself an xml document). That is the difference and that is also the detail intended to be shown otherwise I wouldn't bother. They by the full line written output of course the same xslt document that is what I want you to see alternative or looking at the same problem at different angle. It is not meant to be read casually.
If the generateXSL() line does not work for your version, just don't use it and comment it out. You have the other two lines to output the same already. It is probably related to the xdk you're using. That's all. You've to read your manual.
g tsuji wrote:>will get same output for both methods.is it rgt?
Apart from some (unsignificant) ignorable whitespaces related to formatting, they get the same output, an xslt doc.
g tsuji wrote:You can google for oracle xdk developer's guide. For 9i release 2 (9.2), this is the link:
http://download.oracle.com/docs/cd/B10501_01/appdev.920/a96621.pdf
whereas for 11g release 1 (11.1), this:
http://download.oracle.com/docs/cd/E15523_01/appdev.1111/b28394.pdf
You can too find 10g's.
If you care to read, you will discover that generateXSL() begins to appear from 10g. For 9i version, it is not yet entered into the spec.
Other than that I don't have anything to share on how to read and do. That sounds terribly pretentious.
Why is the word "abbreviation" so long? And this ad is so short?
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
|