NewBie : How can I do to compile the samples of XML Parser ?

How can I do to compile the samples of XML Parser ?
I must create a Makefile file, and after ?
Thanks

It`s for the Parser C++.
thanks

Similar Messages

  • How can I open and diplay the inhalt of  xml-file on a Jpanel

    It sounds very simple to do that. I've already read the Xml-tutorial. But I still don't know, how can I do it?what is the best and simple way to do that? Any advice would be greatly appreciated! Please write some code for me, if possible. so that I can grasp it ASAP!

    * Display_XML.java
    import java.awt.*;
    import java.io.*;
    import javax.swing.*;
    import javax.xml.parsers.*;
    import org.w3c.dom.*;
    public class Display_XML extends JFrame {
        public Display_XML() {
            initComponents();
            readXML();
        private void initComponents() {
            textScroller = new JScrollPane();
            textarea = new JTextArea();
            setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
            setTitle("Alimentation:  product list");
            textarea.setEditable(false);
            textarea.setBackground(new Color(254,254,204));
            textScroller.setViewportView(textarea);
            getContentPane().add(textScroller, BorderLayout.CENTER);
            Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
            setBounds((screenSize.width-400)/2, (screenSize.height-300)/2, 400, 300);
    This example reads this XML data file [Alimentaion_Test_File.xml]
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <Alimentation>
         <Product>
              <Name>Milk</Name>
              <Price>1.50</Price>
         </Product>
         <Product>
              <Name>Cheese</Name>
              <Price>2.10</Price>
         </Product>
         <Product>
              <Name>Butter</Name>
              <Price>1.90</Price>
         </Product>
         <Product>
              <Name>Cream</Name>
              <Price>1.96</Price>
         </Product>
    </Alimentation>
        private void readXML() {
            File file = new File("Alimentaion_Test_File.xml");
            try {
                DocumentBuilder builder =
                        DocumentBuilderFactory.newInstance().newDocumentBuilder();
                Document doc = builder.parse(file);
                NodeList nodes = doc.getElementsByTagName("Product");
                for (int i = 0; i < nodes.getLength(); i++) {
                    Element element = (Element) nodes.item(i);
                    NodeList title = element.getElementsByTagName("Name");
                    Element line = (Element) title.item(0);
                    textarea.append("Name: " + getCharacterDataFromElement(line)+"\n");
                    NodeList url = element.getElementsByTagName("Price");
                    line = (Element) url.item(0);
                    textarea.append("   Price: " + getCharacterDataFromElement(line)+"\n");
            } catch (Exception e) {
                e.printStackTrace();
        public static String getCharacterDataFromElement(Element e) {
            Node child = e.getFirstChild();
            if (child instanceof CharacterData) {
                CharacterData cd = (CharacterData) child;
                return cd.getData();
            return "?";
        public static void main(String args[]) {
            EventQueue.invokeLater(new Runnable() {
                public void run() {
                    new Display_XML().setVisible(true);
        private JScrollPane textScroller;
        private JTextArea textarea;
    }

  • How can I send request to the server through XML using JSP

    How can I send XML request to the server using JSP and servlets

    Ajax may be the one way.

  • How can you get a compilation album to show up as one album rather than be split up but song and artist?

    how can you get a compilation album to show up as one album rather than be split up by song and artist? I've got loads of albums on iTunes that are compliations and they are all mixed up by track/ artist. Even when you click 'show album' it still just shows the album title and then the artist in alphabetical order - so the album is replicated several times
    Can anyone tell me how to amalgamate compliation albums please?

    This web page will help you: http://samsoft.org.uk/iTunes/grouping.asp

  • How can I view my compilations in Music on iPad?

    How can I view my compilations in Music on iPad?

    I just have albums and songs in my Music library, so I'm not sure what the issue might be.  Hopefully, someone who creates compilations will have an answer for you.

  • How to open, edit and compile the order import program.

    Order import program deletes the so_header_interface_all and so_lines_interface_all tables after importing, I want to avoid deleting the interface tables.
    Please ket me know in detail how to comment the delete statement in the order import program.
    I want to know how to open, edit and compile the order import program.
    Thanks,
    Previn

    While you can access the OLE objects in C#.NET, the JSObject was designed as a bridge to VB.NET. Since the real power of what you can do with Acrobat automation comes from the JSObject, it would be very difficult to do that you want from C#.NET - or you would at least be limited in what you can do beyond basic functionality.
    Also, a full version of Adobe Acrobat Standard or Professional would need to be installed on each client system. Reader will not work for what you want to do. Each end user running your application will require an installation of Acrobat.

  • I have a Australian iTunes account and want to switch to using the u.s store as I now live there, I cannot do this because I have $1.41 still in the oz account an image to have a zero balance to change stores, how can I get rid of the $1.41?

    I want to switch to the u.s store as I now live in the us, I cannot switch stores because my balance is $1.41 in the oz store and needs to be zero, how can I get rid of the $1.41 when everything costs more or less than that? I do not have a credit card on the oz iTunes account an I cannot use my us one to top it up.
    HELP

    Click here and request assistance.
    (60992)

  • I did not deactivate a photoshop cs6 before there was a new hard drive installed with a Win7 Pro fresh install too. How can I activate photoshop on the new hardware if I can't deactivate it on the old hardware that is no longer available? Any help will be

    I did not deactivate a photoshop cs6 before there was a new "C" hard drive installed on my computer and a Win7 Pro fresh install too. How can I activate photoshop on the new hardware if I can't deactivate it on the old hardware that is no longer available? Any help will be appreciated.

    If it's the same machine (same CPU) there should not be any need to activate.  The actiovation is tied to your CPU.
    If you run into problems, then:
    Unfortunately, only Adobe customer service can assist you with your issue. These are user forums; you are not addressing Adobe here.
    Click on the link below, and after that click on "Still need Help? Contact us."
    Then on the next page, click Chat
    There is also a phone option. 1 (800) 833-6687
    http://helpx.adobe.com/contact.html?step=PHXS_downloading-installing-setting-up_licensing- activation

  • As an update, I installed an update 5.7on my Mac laptop, now the Lightroom 5.0 has become a "Lightroom Mobile" version.  How can change it back to the laptop version?

    As an update, I installed an update 5.7on my Mac laptop, now the Lightroom 5.0 has become a "Lightroom Mobile" version.  How can change it back to the laptop version 5.7?
    Thanks for any help you can provide.

    LR on your laptop is still a desktop version.  It is just now able to upload to the cloud to replicate photos to either http://lightroom.adobe.com/ or an iPad that has LR Mobile installed.
    I think you probably just want to change the LR 5 identity plate back so it doesn’t mention LR Mobile all the time.  Hover over the identity-plate area, and click on the little triangle that appears, then choose Change Identity Plate.

  • I partitioned my MacBook Pro and installed Windows 8 in it.....now I can't find my partition when I pressed option key when booting up.....so how can I do to find the partition to boot...I can see it in the disk manager in Mac....any ideas? thanks..!..

    I partitioned my MacBook Pro and installed Windows 8 in it.....now I can't find my partition when I pressed option key when booting up.....so how can I do to find the partition to boot...I can see it in the disk manager in Mac....any ideas? thanks..!..

    Hi LamboMong,
    just try this:
    http://refit.sourceforge.net
    install, reboot twice and choose the Windows-Partition on next startup.
    (The apple-bootloader doesn't display all bootable harddisks.
    With rEFIt you can boot from all partitions/harddisks on your computer.)
    I hope that will solve your problem.
    Daniel Fernau

  • I updated to new ios and now it is not syncing properly.  How can i revert back to the previous installed version?

    I updated to new ios and now it is not syncing properly.  New songs are not showing up on the ipod display but when I view the device on my computer, they are in the playlist but there is a dashed circle beside the missing songs.  It previously synced perfectly before the IOS update.  How can i revert back to the previous installed version?

    Downgrading the iOS is not supported by Apple.
    Try:
    Re: What does the gray dotted circle in iTunes mean?
    https://discussions.apple.com/thread/4676111?tstart=0\\
    Dotted circles next to songs, won't sync, red circle with square?

  • The Airplay icon does not show, regardless that it is clicked on display. How can I do to see the Airplay Icon in order to connect my apple TV with my Mac Pro?

    The Airplay icon does not show on my Mac Pro, regardless that it is clicked on display. How can I do to see the Airplay Icon in order to connect my apple TV with my Mac Pro?

    To check your model go to About This Mac (by clicking on the Apple icon, top left) and then select more info. If you wish to use mirroring you will need one from 2011 or later running OSX 10.8 or later. The alternative would be to use 3rd party software like Airparrot.
    About AirPlay Mirroring in OS X

  • How can i get acsess to my data if my iphone is shut and can´t open any more??how can i get acsess to the memory card, how can i get acsess to my data if my iphone is shut and can´t open any more??how can i get acsess to the memory card

    how can i get acsess to my data if my iphone is shut and can´t open any more??how can i get acsess to the memory card????please help

    You can't. There is no memory card. It uses flash memory that's soldered to the logic board. If you didn't back it up, your data is gone.

  • How can I get rid of the dark area on top one third of my iphone screen which spoils my background image?

    How can I get rid of the dark area on top one third of my iphone screen which spoils my background image?
    It seems this problem is caused by the software to increase the readibility of upper letters (clock battery etc.) It be nice to leave us the control of choosing background letter color too if we are using brighter images or darker images.
    I'm using iphone 4s and it appeared after I updated to new patch. 7.1.1.
    Thanks,
    Cem
    I do not know how to move topics from sections of forum so I apologise for duplicate post.
    https://discussions.apple.com/message/25594879#25594879

    Photo added.

  • When printing a list in Address Book, how can I select more than the default Attributes and keep them selected when I print again? I want to print ALL information for contacts so I have email address, notes, phone, company, title, etc all on one page.

    When printing a list in Address Book, how can I select more than the default Attributes and keep them selected when I print again? I want to print ALL information for contacts so I have email address, notes, phone, company, title, etc all on one page. I don't want to have to check off an additional 5 or 6 attributes each time I print out contact information. Is there a way to change the default setting for printing lists, so it is not just "phone," "photo," and "job title?"

    I have a user who wants to do this same thing. I did not find any way either to default the attributes to anything other than what you see the first time. Seems like such a trivial thing, hard to believe they do not allow it. I did find a program for this called iDress but I can't seem to download it from any links on the Internet. Not sure if it is free or not, but it was recommended by a link on the Mac support site.

Maybe you are looking for

  • Can't access PC Documents folder when uploading from external program

    When attempting to upload a file into Knack database from This PC/Documents folder I am referred back to One Drive and the following message: "Something went wrong and this app can't pick files right now. Try selecting app again" Reselecting results

  • Using Home Share, on the same account, can i transfer / download my iTunes library from one computer to another?

    I have a match account and i am not trying to share with another account, i am only trying to move from one computer to the other. I see my music on the new home laptop but i think they are only showing b/c they are in the cloud and i am worried that

  • I need urgent help with iCloud!!

    Hi, I didn't think it would come to posting on here, but anyway. My Dad gave me his old iPhone 5, the sim and everything is set up, the problem is that it keeps spamming me to sign into his iCloud. And I don't know his password for it. I asked him an

  • How to include resource files in the server classpath

    Hello, I deployed an EAR on weblogic. I have couple of resource files that I need to put in the server classpath. I get the following error when I try to access the web app. java.util.MissingResourceException: Can't find bundle for base name HtmlTemp

  • How to use saxon in WS 7.04 ?

    Hi, I am trying to use the saxon transformer in a webapplication under Weblogic server 7.04. I have tried the usual way : to put my jaxp properties under META-INF/services (in WEB-INF/lib as specified in the documentation) but it crashes the server.(