You need to sign in to do that
Don't have an account?
Ad_Infosys
XML Stream Reader
If I have a large XML from other external application.
I have the XML on the server i.e. my local machine. the location is something like
C:\\Documents and Settings\\rahul_arora\\Desktop\\book.xml
Now I want this to be utilised in SFDC. All the examples to read the XML have the XML code converted to string and then instantiate the XMLStreamReader.
How do I do in my case. Kindly suggest the elaborated approach.
I have the same problem as you. I don't know where to start! Do we create a HTML page (or php, asp.net) to hanlde the data and then use an s-control to mash-up with salesforce? Or we have to create an APEX code to deal directly with the data from the xml? I'm a bit confused... Any help on this issue is most welcome! Sorry i'm not helping at all...
Best regards
FLopes
http://www.jonmountjoy.com/foo.xml
To grab it, I use the following code:
result should be bar1 bar2.
Hope that helps!
Jon
Thanks dear.
This seems to be an attractive approach.
Is it possible if we copy the XML in a trigger. This code will convert the XML to a string variable. Then pass the same variable in the XMLStreamReader() class. This will on the lines of the code specified in apex reference guide.
Best Regards
Aman.