Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

Hi Pankaj, i appreciate your contributions. pls i am writing a GUI calculator program. When i click on a number, it displays in the textfield, but, the moment i click on another, it overrides the previous. how do i go about this?
- Jide
Just append the label of button with textbox content and set It again. String num=t1.getText()+btn.getLabel(); t1.setText(num); something like this
- Varsha
Thank you very much, very clear explanations. I’ve been trying for several hours to wrap my head around the concept and usage of the SAX API and you made it easy for me. Thank you again!
- Andres
Hi Pankaj, Is the response data Should be in request.Is there any chance for hidden… Means already stored data we need with some reference field. like through Employee Id, we need to get Employee details(already Employee Details are stored)… How it is???
- pallavi
Hi, For example using startelement I’m passing as but in the endelement I should get only as not as .I have used ContentHandler for this. How can we implement to have different name in header and footer. Any help can be greatly appreciated!
- Ariyur
HI, SIR… its fine for single xml document, if in case we are using more than one xml document how it will differentiate and store. ex: you are taken employee xml document, i am inserting student.xml doc and book.xml document in that how it will identify individually and store. if we enter pankaj how it will identify whether it is student name or employee name or author name.
- ashwini
How to parse empty tags? I mean example is cool but very simple. I can’t figure out how to parse short notation tags: or empty ones but lik …this is correct xml, but according to code above, next node will be treated as content of it…
- Ellen
Hi Pankaj, I have no coding experience and I’m trying to parse an xml file. I used your code and modified it. When I run it, i get this: Exception in thread “main” java.lang.NullPointerException at edu.illinois.lis.hakimra2.myproject.MyHandler.characters(MyHandler.java:72) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.characters(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(Unknown Source) at javax.xml.parsers.SAXParser.parse(Unknown Source) at edu.illinois.lis.hakimra2.myproject.XMLParserSAX.main(XMLParserSAX.java:19) Do you know what might the problem be? Also, I want to store my data in a csv file. Can you tell me how to do it? Thanks
- Dalal
Can you help me, how to do sax parsing for be low xml 1 PROD=DPP;PLC=IOYR2013NSSN 1003N.3::DPP::0 94 94 15 15 94 11.6 12.34 15.95 10.5 CF=1;PLC=IOYR2013NSSN;M_ITEMSELL:MFY.=93.85;M_SALESTAX:TFN.=7.37;M_SHIPPING:SFYS=7.78;M_SHIPSUR:SFYS=0;P_ITEMSELL:MFN.=94;P_SHIPSUR:SFNS=0;P_TSH:SFNS=15;A_ITEM:PAX=94;A_ITEM:USD=94;A_SHIP:PAX=15;A_SHIP:USD=15;D_PV:PAX=15.95;D_BV:PAX=10.5 94 94 15 15 94 11.6 12.34 15.95 10.5 CF=1;PLC=IOYR2013NSSN;M_ITEMSELL:MFY.=93.85;M_SALESTAX:TFN.=7.37;M_SHIPPING:SFYS=7.78;M_SHIPSUR:SFYS=0;P_ITEMSELL:MFN.=94;P_SHIPSUR:SFNS=0;P_TSH:SFNS=15;A_ITEM:PAX=94;A_ITEM:USD=94;A_SHIP:PAX=15;A_SHIP:USD=15;D_PV:PAX=15.95;D_BV:PAX=10.5
- ramesh