XML newbie question - xml into arrays

I am pretty new xml and I am working with a file that has
text
associated with images in the file and I would like to move
the text
into a xml document.
I heard that a good way to deal with xml is to load it into
an array. I
have my text set up in arrays already, so my whole file
aready works in
that way. So all I have to do is load my xml document into my
arrays. I
have the xml document loading fine, but I don't know how to
get the info
into my arrays.
My xml document looks like this:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<index_content>
<image no="1">
<imgLink>"pages/collection.html"</imgLink>
<title>"Title 01"</title>
<text>"Text bla bla, bla 01, Text bla bla, bla
01"</text>
<corner>"unisex"</corner>
</image>
<image no="2">
<imgLink>"pages/collection.html"</imgLink>
<title>"Title 02"</title>
<text>"Text bla bla, bla 02, Text bla bla, bla
02"</text>
<corner>"men’s & women’s"</corner>
</image>
<image no="3">
<imgLink>"pages/collection.html"</imgLink>
<title>"Title 03"</title>
<text>"Text bla bla, bla 03, Text bla bla, bla
03"</text>
<corner>"men’s & women’s"</corner>
</image>
<image no="4">
<imgLink>"pages/collection.html"</imgLink>
<title>"Title 04"</title>
<text>"Text bla bla, bla 04, Text bla bla, bla
04"</text>
<corner>"men’s & women’s"</corner>
</image>
</index_content>
My arrays in Flash are:
var imgLinkURLs:Array = [];
var imgTitles:Array = [];
var imgTexts:Array = [];
var imgCornerLabel:Array = [];
So I think i need for loops pushing for example imgLink from
image no1
into imgLinkURLs array, then push imgLink from image no2, and
so forth.
Then do the same for imgTitle and the other arrays...
How would I do this the right way?

you can do it in just one loop, going through all the image
tags in index_content and for each tag fill the values of all four
arrays
for (i...) {
get the appropriate child of index_content
first_array[ i ] = value of first tag
second_array[ i ] = value of second tag
no need for multiple loops.
flash has functionality for xml files, but it helps to write
a little wrapper around it, to simplify programming, especially if
you work with xml a lot.. I wrote my for work, so I can't show it
to you, but it's not very complicated to do

Similar Messages

  • Newbie question - XML version, searching by artist

    Probably quite a common problems - apologies for newbie questions.
    I've changed the URL of my MP3s in my XML to a new location and refreshed my feed. Is there a way of seeing what version of the XML iTunes is using? (it takes around 24 housr to refresh, right?)
    Also, when I'm searching for my podcast by author it's not coming up (<channel><itunes:author>) - is there a reason for this or a way to get it to show up when people search for the artist, other than doubling it in the title? (This works by the way, but I'd prefer not to!)
    Thanks.

    you can do it in just one loop, going through all the image
    tags in index_content and for each tag fill the values of all four
    arrays
    for (i...) {
    get the appropriate child of index_content
    first_array[ i ] = value of first tag
    second_array[ i ] = value of second tag
    no need for multiple loops.
    flash has functionality for xml files, but it helps to write
    a little wrapper around it, to simplify programming, especially if
    you work with xml a lot.. I wrote my for work, so I can't show it
    to you, but it's not very complicated to do

  • XML newbie question

    Hi,
    Firstly, I am sorry to post native-XML question here..
    I am using XML in my Java application and came across XML Schema.
    As far as I know XML Schema does similar job(validating xml doc) with DTD with more functions.
    Is that all XML Schema can do, validating related XML doc?
    My application needs to build different types of XML docs with existing XML Schemas.
    This is silly question but...
    Is there any way to embed XML Schema into XML builder/parser so that it can be used to generate XML doc ?
    In other words, when building XML doc, is it possible to guilde the building process with XML Schema...
    If not, then building different XML docs with different XML Schemas in my application would be very tedious...
    Thanks in advance.

    To generate an XML document from an XML schema, generate java classes from the Schema with JAXB.
    Construct an XML document from the java classes by marshalling a java object.

  • Newbie question - iweb into "iphoto" site?

    I am just opening iweb for the first time on my new macbook. I really like some of the things that appear to be possible with it.
    However, for a number of years now I have been keeping a collection of photos tracking the birth and growth of my son for the benefit of far away friends and relatives. I have built it though iPhoto and my .mac homepage space.
    I have a beautiful new daughter for whom I want to do the same, but iPhoto no longer allows that. My question then is - can I post "iweb pages" into my exisiting .mac site without destroying all the other photos that I have collected and posted over the years.
    Power Book 12   Mac OS X (10.4.1)  
    MacBook   Mac OS X (10.4.1)  

    Apnewbie is right.... your Homepages created with previous versions of iPhoto are indeed safe. They are not in any danger of being overwritten by iWeb, as far as we've all been led to believe so far. But iWeb is definitely the way of the future in terms of how Apple wants us to think of it...as you mention, the easy Homepage function is no longer available in iPhoto 6. Instead of Homepages, now Apple wants you to use iWeb to create your photo pages. You can do so using the iWeb icon in the bottom of the iPhoto window and selecting "Photo Page". This is the closest equivalent of the old Homepages function.
    But iWeb is infinitely more functional and customizable than the old Homepages system. There is actually a "hidden" function for creating photo gallery pages easily, especially since it sounds like you already have your photos organized into albums in iPhoto. The process is detailed here in this .Mac blog entry...
    http://www.mac.com/web/en/Tips/013C4180-4787-4847-BAAB-319222AFC652.html
    iWeb has a little bit of a learning curve, but I think once you get the hang of using it, you will not miss the old Homepages function. Of course, if you run into any showstoppers, please don't hesitate to post your questions here in this forum....It's filled with lots of helpful people eager to lend you a hand.

  • XML going into Arrays is killing my movie

    I'm loading a large xml file into flash.
    I think the amount of data going into Arrays is killing my
    move. So what are the work arounds?

    If the built-in XML parser is getting bogged because there is
    too much to
    handle, you ought to try loading smaller chunks of data.
    "mcshaw" <[email protected]> wrote in
    message
    news:e7ueac$md0$[email protected]..
    > I'm loading a large xml file into flash.
    > I think the amount of data going into Arrays is killing
    my move. So what
    are the work arounds?

  • ANT Newbie question webxml="web.xml" ????

    I have following lines in my build.xml
    <war
            basedir="../"
            warfile="${distpath.project}/${project.distname}.war"
            webxml="web.xml">
            <exclude name="${distpath.project}/${project.distname}.war"/>
    </war>Can anybody tell me what is the meaning of webxml="web.xml" ???
    Also, if i am not wrong, does the last line mean that exclude the .war file while creating the war ???
    Thanks !!!

    Can anybody tell me what is the meaning of
    webxml="web.xml" ???This attribute is used to specify the XML file which contains the deployment descriptors for the web app. In short, if you specify "mydesc.xml" there, the XML will be copied to WEB-INF/web.xml
    Also, if i am not wrong, does the last line mean that
    exclude the .war file while creating the war ???This might be something like excluding the previously generated WAR files. Not sure really!

  • How to read the data from XML file and insert into oracle DB

    Hi All,
    I have below require ment.
    I will receive data in the XML file. then i need to read that data and insert into oracle tables. please let me know how this can be handled.
    Many Thanks.

    Sounds a lot like this question, only with less details.
    how to read data from XML  variable and insert into table variable
    We can only help if you provide us details to help as we cannot see what you are doing and only know what you tell us.  Plenty of examples abound on the forums that cover the topics you seek as well.

  • How to specify a parser? xml newbie

    Hello
    I am an XML newbie. I need to validate an XML using xerces 2.7.0. I do not want to use JAXP. (because it does not support xsd:unique).
    xerces supports is. My problem is very simple. How do I force my parser to use xerces.
    Please provide code sample.
    Thank you

    My other question is:
    How do I verify what parser am I using?
    Obviously, I have no clue what I am doing.

  • Uploading an XML file from SAP into third party URL

    Hi,
    I need to Upload an XML file from sap into Third party URL. Can any body tell me the possible ways in SAP to achieve this task. Also explain me the proceedure.
    Thanks in advance.
    -Namdev

    Sorry. If they only said HTTP/HTTPS and didn't say explicitly web service, it means they don't want it.
    One thing I'm not sure is, do you have an URL at the third-party system that you need to contact, or should you provide one at your SAP system that they will contact?
    If it is the first one, to send an HTTP request to a given URL using ABAP, you'll find an example here: [SAP Library: Example Program: Executing an HTTP Request|http://help.sap.com/saphelp_nw70/helpdata/en/1f/93163f9959a808e10000000a114084/frameset.htm]
    Sandra

  • How to merge multiple XML or Text documents into 1 Word Document?

    Hi all,
    We're looking for a way to merge multiple XML or Text documents into 1 Word document.
    All the XML or Text documents are oriented as a 'Paragraph', meaning smaller pieces of text.
    By selecting some of these XML documents, the system should be able to create a new Word document with all the selected text paragraphs included.
    The Word document can then be edited for applying a correct lay-out and the document is ready.
    Actually, we are trying to do some kind of 'mail merge' but with multiple XML or Text documents!
    Has anybody an idea whether something exist already or give us a direction how to proceed?
    Thanks in advance,
    Pascal Decock

    You use Assembler for this purpose.
    1) Assembler can be accessed through LC Java API. See http://help.adobe.com/en_US/enterpriseplatform/10.0/programLC/help/index.html
    API Quick Starts (Code Examples) > Assembler Service API Quick Starts
    2) Last week I posted on generating and merging PDF's from PostScript. Take a look at the assembly service instance in the .lca. Assembler uses DDX (Document Description XML) to describe document construction. NOTE the .lca was developed with ES 3 (aka ADEP). The .lca It contains the most basic DDX.
    <?xml version="1.0" encoding="UTF-8"?>
    <DDX xmlns="http://ns.adobe.com/DDX/1.0/">
    <PDF result="out.pdf">
      <PDF source="inDoc1"/>
      <PDF source="inDoc2"/>
    </PDF>
    </DDX>
    http://forums.adobe.com/message/4019760#4019760
    DDX Reference at http://help.adobe.com/en_US/livecycle/9.0/ddxRef.pdf
    Steve

  • Import xml file Question

    Here is my senario:
    I have distribute a form and I have collect responses. Then I have export(save) the responses as a .xml file.
    Here is the .xml file:
    <?xml version="1.0" encoding="UTF-8" ?>
    - <Data>
    - <!-- CopierTest_distributed_0001.pdf-->
    - <form1>
    <Copier>Xerox</Copier>
    <Meter>300</Meter>
    </form1>
    - <!-- CopierTest_distributed_0001.pdf-->
    - <form1>
    <Copier>Canon</Copier>
    <Meter>2000</Meter>
    </form1>
    </Data>
    Is it posible to import the xml into a dynamic form with the two fields(Copier and Meter)

    Hi,
    Based on the data you have provided you would need to do something like this.
    - Create a document in designer.
    - create 2 text fields ( one for the copier name  and  one for  Meter)
    For each field you need to go to the binding tab and set
         Data Binding = "$.Copier" ( without quotes) for the copier text field  AND
         Data Binding = "$.Meter" ( without quotes) for the Meter text field.
    - wrap the two fields in a subform
    In the details for the subform set the following in the Binding Tab
         Data  Binding = "$.form1[*]" ( without the quotes)
         Repeat subform for each data item  should be checked  ( If this is greyed out, wrap this subform in a subform)
    If you then create a XML file from your data and use this in the preview settings of designer you can preview the document and see what it looks like.
    I can hopefully workout someway to get a sample file so you can see what has been done
    Regards
    Malcolm

  • XML/XSD question (using ODI)

    Hi all.
    I have posted this in the ODI forum as well, but this may be a more proper place to ask for help.
    I'm working on a new dwh solution where the main source of data will come from XML-files. The problem is that we are having difficulties with the use of abstract types in the xsd-file. We currently use ODI to read the XML-files and to store the data in our database, but all fields from the XML-files are not visible in the target tables.
    The problem can be simplified like this example:
    We have a main element, testElement, which can contain one or more publications.
    Publication is of type PublicationType, and PublicationType is an abstract that contains title, author and date.
    We have four other types which extends PublicationType; BookType, MagazineType, NewspaperType and AdsType. They all contain additional fields.
    XSD-file
    <?xml version="1.0" encoding="UTF-8"?>
    <schema xmlns="http://www.w3.org/2001/XMLSchema"
    targetNamespace="urn:testing:kontroll:example:oppgave:v1"
    xmlns:tns="urn:testing:kontroll:example:oppgave:v1"
    xmlns:xdb="http://xmlns.oracle.com/xdb"
    elementFormDefault="qualified">
    <element name="testElement" type="tns:TestElementType" xdb:defaultTable="TEST_TAB" />
    <complexType name="TestElementType">
    <sequence>
    <element name="publication" type="tns:PublicationType" minOccurs="1"
    maxOccurs="unbounded" />
    </sequence>
    </complexType>
    <complexType name="PublicationType" abstract="true">
    <sequence>
    <element name="title" type="string"/>
    <element name="author" type="string" minOccurs="0"
    maxOccurs="unbounded" />
    <element name="date" type="string"/>
    </sequence>
    </complexType>
    <complexType name="BookType">
    <complexContent>
    <extension base="tns:PublicationType">
    <sequence>
    <element name="ISBN" type="string"/>
    <element name="publisher" type="string"/>
    </sequence>
    </extension>
    </complexContent>
    </complexType>
    <complexType name="MagazineType">
    <complexContent>
    <extension base="tns:PublicationType">
    <sequence>
    <element name="editor" type="string"/>
    <element name="period" type="string" minOccurs="0"
    maxOccurs="1"/>
    </sequence>
    </extension>
    </complexContent>
    </complexType>
    <complexType name="NewspaperType">
    <complexContent>
    <extension base="tns:PublicationType">
    <sequence>
    <element name="daily" type="boolean"/>
    <element name="owner" type="string" minOccurs="0"
    maxOccurs="1"/>
    </sequence>
    </extension>
    </complexContent>
    </complexType>
    <complexType name="AdsType">
    <complexContent>
    <extension base="tns:PublicationType">
    <sequence>
    <element name="company" type="string"/>
    <element name="article" type="string" />
    </sequence>
    </extension>
    </complexContent>
    </complexType>
    </schema>
    XML-file
    <?xml version="1.0" encoding="UTF-8"?>
    <tns:testElement xmlns:tns="urn:testing:kontroll:example:oppgave:v1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:testing:kontroll:example:oppgave:v1 ExampleXMLSchema.xsd ">
    <tns:publication xsi:type="tns:BookType">
    <tns:title>Boken</tns:title>
    <tns:author>Arne Svendsen</tns:author>
    <tns:date>2001</tns:date>
    <tns:ISBN>78979797</tns:ISBN>
    <tns:publisher>The Company Ltd</tns:publisher>
    </tns:publication>
    <tns:publication xsi:type="tns:MagazineType">
    <tns:title>Fancy Magazine</tns:title>
    <tns:author>Mads Madsen</tns:author>
    <tns:date>2011</tns:date>
    <tns:editor>Svante Svantesen</tns:editor>
    <tns:period>weekly</tns:period>
    </tns:publication>
    </tns:testElement>
    When tables are generated in the database through ODI I'm not getting all the attributes present in the xml-file.
    Can anybody tell me if this should work (and, if yes, why it doesn`t)? Or if the XSD/XML looks wrong in some way?
    Is this a known limitation in Oracle or ODI etc.?
    Any pointers to documentation describing similar problems would also be helpful.
    Thanks,
    Bjørn

    Hi, Bjørn,
    When tables are generated in the database through ODI I'm not getting all the attributes present in the xml-file.I don't know ODI, so I'm just curious here : what tables are generated? Is there one table per extented type (+ child tables for repeating elements), or just one Publication table with missing columns?
    I've looked at the other thread you mentioned on the ODI forum, and saw that you'd also want to store XML files in an XMLType table.
    I tested the schema registration in the database to see how Oracle reacts to the structure, and it looks OK, type extensions are supported.
    SQL> begin
      2   dbms_xmlschema.registerSchema(
      3     schemaURL => 'ExampleXMLSchema.xsd'
      4   , schemaDoc => bfilename('TEST_DIR', 'ExampleXMLSchema.xsd')
      5   , local => true
      6   , genTypes => true
      7   , genTables => true
      8   , enableHierarchy => dbms_xmlschema.ENABLE_HIERARCHY_NONE
      9   );
    10  end;
    11  /
    PL/SQL procedure successfully completed
    SQL> insert into test_tab
      2  values (xmltype('<?xml version="1.0" encoding="UTF-8"?>
      3  <tns:testElement xmlns:tns="urn:testing:kontroll:example:oppgave:v1"
      4                   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      5                   xsi:schemaLocation="urn:testing:kontroll:example:oppgave:v1 ExampleXMLSchema.xsd ">
      6    <tns:publication xsi:type="tns:BookType">
      7      <tns:title>Boken</tns:title>
      8      <tns:author>Arne Svendsen</tns:author>
      9      <tns:date>2001</tns:date>
    10      <tns:ISBN>78979797</tns:ISBN>
    11      <tns:publisher>The Company Ltd</tns:publisher>
    12    </tns:publication>
    13    <tns:publication xsi:type="tns:MagazineType">
    14      <tns:title>Fancy Magazine</tns:title>
    15      <tns:author>Mads Madsen</tns:author>
    16      <tns:author>Arne Svendsen</tns:author>
    17      <tns:date>2011</tns:date>
    18      <tns:editor>Svante Svantesen</tns:editor>
    19      <tns:period>weekly</tns:period>
    20    </tns:publication>
    21  </tns:testElement>'))
    22  ;
    1 row inserted
    Querying as relational data :
    SQL> select x.*
      2  from test_tab t
      3     , xmltable(xmlnamespaces(default 'urn:testing:kontroll:example:oppgave:v1'),
      4       'for $i in /testElement/publication
      5        return element r {
      6          $i/child::*
      7        , element pubtype {
      8            typeswitch($i)
      9              case element(publication, BookType)      return "Book"
    10              case element(publication, MagazineType)  return "Magazine"
    11              case element(publication, AdsType)       return "Ads"
    12              case element(publication, NewspaperType) return "Newspaper"
    13              default return "Publication"
    14          }
    15        }'
    16       passing t.object_value
    17       columns title   varchar2(500) path 'title'
    18             , authors varchar2(500) path 'string-join(author,",")'
    19             , pubdate number(4)     path 'date'
    20             , isbn    number(13)    path 'ISBN'
    21             , editor  varchar2(500) path 'editor'
    22             , period  varchar2(500) path 'period'
    23             , pubtype varchar2(30)  path 'pubtype'
    24       ) x
    25  ;
    TITLE                 AUTHORS                        PUBDATE           ISBN EDITOR                PERIOD      PUBTYPE
    Boken                 Arne Svendsen                     2001       78979797                                   Book
    Fancy Magazine        Mads Madsen,Arne Svendsen         2011                Svante Svantesen      weekly      Magazine

  • XML newbie - parsing RSS

    Hello Everbody,
    i started playing around with xml and i am finding it very interesting...i have a question, how does one transform an rss feed using Java.(to use on my home page for example)? I know that they have an RSSUtilities package here on java.sun.com but i wanted to try it out on my own so that i get more experience using it..
    i was successfully able to parse xml docs using sax and dom approaches..(i use jaxp by the way..) also, i can transform xml to html using dom and xslt stylesheets but feeds?? if i use the same program that i used for sml files, at run time i get the following errors..
    Error: URI=file:D:/javapractice/inrss.xml Line=2: Element type "rss" is n
    ot declared.
    Error: URI=file:D:/javapractice/inrss.xml Line=2: Attribute "version" is
    not declared for element "rss".
    Error: URI=file:D:/javapractice/inrss.xml Line=3: Element type "channel"
    is not declared.
    Error: URI=file:D:/javapractice/inrss.xml Line=4: Element type "title" is
    not declared.
    Error: URI=file:D:/javapractice/inrss.xml Line=5: Element type "link" is
    not declared.
    Error: URI=file:D:/javapractice/inrss.xml Line=6: Element type "descripti
    on" is not declared.
    Error: URI=file:D://javapractice/inrss.xml Line=7: Element type "language"
    is not declared.
    Error: URI=file:D://javapractice/inrss.xml Line=8: Element type "pubDate"
    is not declared.
    Error: URI=file:D://javapractice/inrss.xml Line=9: Element type "copyright
    " is not declared.
    Error: URI=file:D://javapractice/inrss.xml Line=10: Element type "image" i
    s not declared.
    i think the above is understood because there is no dtd for these rss feeds... please, help me understand this as i am going crazy with this problem

    Hi Nachida,
    The code is very simple and I am posting it as below.. Please note that if I use a regular xml file, it gives me correct results but if I use an RSS feed, it complains..
    First the code..
    import org.xml.sax.helpers.DefaultHandler;
    import java.io.File;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import org.w3c.dom.Document;
    import org.w3c.dom.DOMException;
    import javax.xml.transform.Transformer;
    import javax.xml.transform.TransformerFactory;
    import javax.xml.transform.TransformerConfigurationException;
    import javax.xml.transform.TransformerException;
    import javax.xml.transform.dom.DOMSource;
    import javax.xml.transform.stream.StreamResult;
    import javax.xml.transform.stream.StreamSource;
    import org.xml.sax.Attributes;
    import org.xml.sax.SAXException;
    import org.xml.sax.SAXParseException;
    import javax.xml.parsers.ParserConfigurationException;
    import java.io.IOException;
    public class TransformRss
    { Document document;
         public TransformRss()
              {try
                   {DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();
                     dbFactory.setValidating(true);
                    dbFactory.setIgnoringElementContentWhitespace(true);
                    DocumentBuilder documentBuilder = dbFactory.newDocumentBuilder();
                    document = documentBuilder.parse(new File("inrss.xml"));
              catch (SAXException e)
              {System.out.println("This is a SAX Exception");
              catch (ParserConfigurationException e)
              {System.out.println("This is a Parser Configuration Exception");
              catch (IOException e)
              {System.out.println("This is a IO Exception");
         public void transformTheDocument(File stylesheet)
              {try
                   {Transformer transformer = TransformerFactory.newInstance().newTransformer(new                 StreamSource(stylesheet));
                    transformer.transform(new DOMSource(document), new StreamResult( new File("alteredRss.html")));
              catch (TransformerConfigurationException e)
                   {System.out.println("This a transformer configuration exception");
              catch (TransformerException e)
                   {System.out.println(" this is a transformer exception");
         public static void main(String[] args) throws Exception
              {TransformRss transformRss = new TransformRss();
               transformRss.transformTheDocument(new File("program.xsl"));
    Now instead of rss.xml if I want to transform lets say resumexml.xml it works fine... I am posting both resumexml.xml and inrss.xml
    resumexml.xml-----------------------------------------------------------------------------------------
    <?xml version="1.0"?>
    <!DOCTYPE resume [
    <!ELEMENT resume (name, education, country)>
    <!ELEMENT name (#PCDATA)>
    <!ELEMENT education (#PCDATA)>
    <!ELEMENT country (#PCDATA)>
    ]>
    <resume>
    <name>sabrang</name>
    <education> engineer </education>
    <country> usa </country>
    </resume>
    inrss.xml--------------------------------------// or it could be any rss type of file...
    <?xml version="1.0" ?>
    <rss version="0.91">
    <channel>
    <title>rediff Top Stories - India</title>
    <link>http://www.rediff.com/</link>
    <description>India's largest news and entertainment service online.</description>
    <language>en-us</language>
    <pubDate>Sat, 10 Apr 2004 19:44:36 GMT</pubDate>
    <copyright>Copyright: (C) 2004 Rediff.com India Limited. All Rights Reserved.</copyright>
    <image>
    <title>rediff.com</title>
    <url>http://www.rediff.com/uim/red_log.gif</url>
    <link>http://www.rediff.com/</link>
    <width>144</width>
    <height>28</height>
    <description>Visit rediff.com</description>
    </image>
    <item>
    <title>I am a Bihari by birth, saysVajpayee</title>
    <link>http://www.rediff.com/rss/redirect.php?url=http://www.rediff.com/election/2004/apr/10pm.htm</link>
    <description>'I am a Bihari by birth. I was named Bihari by my father the day I was born,' the prime minister said in Patna.</description>
    </item>
    <item>
    <title>US army asks for ceasefire in Fallujah</title>
    <link>http://www.rediff.com/rss/redirect.php?url=http://www.rediff.com/news/2004/apr/10iraq.htm</link>
    <description>After more than a week of fighting the US army has occupied only a small portion of the town.</description>
    </item>
    <item>
    <title>'We'd like to have a Shoaib in our side' </title>
    <link>http://www.rediff.com/rss/redirect.php?url=http://www.rediff.com/cricket/2004/apr/10inter.htm</link>
    <description>India coach John Wright analyses the tour of Pakistan and discusses his future with the Indian team.</description>
    </item>
    <item>
    <title>Vaghela vs Vaghela in Kapadvanj</title>
    <link>http://www.rediff.com/rss/redirect.php?url=http://www.rediff.com/election/2004/apr/10guj1.htm</link>
    <description>Of the seven assembly segments in the constituency, four are with the BJP and the rest with the Congress. So, whichever way you look at it, it is going to be a contest of equals.</description>
    </item>
    <item>
    <title>Paes/Bhupathi give India 2-1 lead</title>
    <link>http://www.rediff.com/rss/redirect.php?url=http://www.rediff.com/sports/2004/apr/10doubles.htm</link>
    <description>The ace doubles pair beat Thomas Shimada and Takahiro Terachi in the doubles rubber of the Davis Cup Asia/Oceania Group I tie.</description>
    </item>
    <item>
    <title>On the road to peace, a dream bloodied</title>
    <link>http://www.rediff.com/rss/redirect.php?url=http://www.rediff.com/news/2004/apr/10uri.htm</link>
    <description>Just a few days back the prospects of the Srinagar-Muzzafarabad road reopening had looked bright.</description>
    </item>
    </channel>
    </rss>

  • XML Newbie - Help Processing Files!

    I'm not exactly sure if "process" is the right word, so I'll describe what I mean. There are two XML files (http://xml.pinnaclesports.com/xmlfeed.asp and http://208.138.39.112/XMLLineFiles/Baseball.xml) that are constantly updated online, and I want to be able to compare certain numbers in the two files.
    Problem is, I really have no clue where to begin. I've heard that you can import XML into Microsoft Excel, but it can only refresh once every minute. Ideally I'd be able to compare the files almost constantly (like every 5 seconds or something). What are my other options? I don't really know any computer programming (besides a minimal amount of C), so I would really appreciate any help, just pointing me in the right direction.
    Thanks for any help!

    Your best option would be to hire a programmer to do that work.
    It's possible you could spend a few months learning the skills, but why bother when you could hire a programmer who could get it done in a day?
    By the way, refreshing once every minute is what you want to do, not every five seconds. Besides the fact that it took me at least 15 seconds just to download those two pages, one of them says
    "2. Do not read the feed more than one times per minute."

  • Hi, extract data from xml file and insert into another exiting xml file

    i am searching code to extract data from xml file and insert into another exiting xml file by a java program. I understood it is easy to extract data from a xml file, and how ever without creating another xml file. We want to insert the extracted data into another exiting xml file. Suggestions?
    1st xml file which has two lines(text1.xml)
    <?xml version="1.0" encoding="iso-8859-1"?>
    <xs:PrintDataRequest xmlns:xs="http://com.unisys.com/Anid"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://com.unisys.com/Anid file:ANIDWS.xsd">
    <xs:Person>
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://com.unisys.com/Anid file:ANIDWS.xsd">
    These two lines has to be inserted in the existing another xml(text 2.xml) file(at line 3 and 4)
    Regards,
    bubbly

    Jadz_Core wrote:
    RandomAccessFile? If you know where you want to insert it.Are you sure about this? If using this, the receiving file would have to have bytes inserted that exactly match the number of bytes replaced. I'm thinking that you'll likely have to stream through the second XML with a SAX parser and copy information (or insert new information) as you stream with an XML writer of some sort.

Maybe you are looking for

  • How can I properly attach an Email 'business card' signature?

    Hi, I was wondering if there were any better ways to attach a business card signature with mail. Currently I have a small business card that I have optimized to around 60 kb, I use the signature feature in Mail to drag it in and add my standard busin

  • ICal recurring events function broken

    Hi folks, I use my Mac for business, so having iCal broken is a serious problem. I hope someone can help. The problem has crept up on me, so I can't pinpoint when I started to have issues. It seems to be progressive in some way. I've tried to delete

  • Cannot restore

    how to restore my ipod 5g? i got a problem with my ipod 5g cann't restore ,  please help me fix it thank you

  • Exclamation marks in iphoto

    This seemingly not so unfamiliar problem happened to me after a iphoto 11 software update. Does anybody know if I can simple restore from a timemachine back up?

  • Show member alias of a attribute members on FR

    Hi, On FR, if I am using essbase connection, how can I show the member alias of a member alias on a text filed? by using the text function "MemberProperty", I can only get the member name of the attribute but not the alias. Thanks in advance.