XML Reader - why re-invent the wheel

Does anyone want to post the code to a good XML Reader that they currently have in use?

Here is some very simple code that reads all of the nodes in an XML doc. I apologize to the writer of this code, I can't remember where I got it and what his/her name is. If someone recognizes it, please pipe up. Oh yeah, and I can't remember what needed to be referenced so I included a bunch of stuff.
anywho:
import org.w3c.dom.*;
import org.xml.sax.*;
import javax.xml.parsers.*;
import java.util.*;
import java.io.*;
public class LoadXMLdoc {
  private Document document;
  public LoadXMLdoc() {
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    try {
      DocumentBuilder builder = factory.newDocumentBuilder();
      document = builder.parse( new File(yourDocumentPathAsStringHere) );
      Element root = document.getDocumentElement();
      String rootElement = (root.getTagName());
      root.normalize();
      System.out.println(rootElement);
      NodeList children = root.getChildNodes();
      System.out.println("It has "+ children.getLength() + " child nodes\n");
      for (int i=0;i<children.getLength();i++) {
        System.out.println(children.item(i).getNodeName());
      System.out.println("I'm done");
        } catch (SAXParseException spe) {
           // Error generated by the parser
           System.out.println("\n** Parsing error"
              + ", line " + spe.getLineNumber()
              + ", uri " + spe.getSystemId());
           System.out.println("   " + spe.getMessage() );
           // Use the contained exception, if any
           Exception  x = spe;
           if (spe.getException() != null)
               x = spe.getException();
           x.printStackTrace();
        } catch (SAXException sxe) {
           // Error generated during parsing)
           Exception  x = sxe;
           if (sxe.getException() != null)
               x = sxe.getException();
           x.printStackTrace();
        } catch (ParserConfigurationException pce) {
            // Parser with specified options can't be built
            pce.printStackTrace();
        } catch (IOException ioe) {
           // I/O error
           ioe.printStackTrace();
}Hope that helps you. It helped me.
Good Luck.
Ben

Similar Messages

  • What does it take to find a simple ringtone to load onto my phone without re-inventing the wheel?

    what does it take to find a simple ringtone to load onto my phone without re-inventing the wheel?

    you could use a free ringtone app or
    RINGTONE
    This how to make ring tones for your iPhone:
    Choose the desired song from you library
    Do a secondary click on your song if you are using a MAC (right click for PC)
    Click "Get Info"
    Go to Options tab
    Set Start Time and Stop Time, some iOS only allow for a 30 sec duration for ringtones, then click OK
    Do secondary click (right click for PC) to your selected song
    Click "Create AAC Version", new song from your selected will added to your library (short one)
    Do secondary click (right click for PC) to your short one (new song)
    Click "Show in Finder"
    Rename file *.m4a to *.m4r, click "use *.m4r"
    Drag the file to library, for the first time it would automatically add your library with new folder "Tones" under Apps folder
    Open the ring tones in the Tones folder of your library than drag it to your iPhone and your ringtone also would be automatically added "Tones" folder.
    Last but not least, set the ring tone in your iPhone under the "Setting-Sound"
    For information on how to make ringtones read http://www.ehow.com/how_2160460_custom-iphone-ringtones-free.html
    Or
    http://www.demogeek.com/2009/07/31/how-to-add-custom-ringtones-to-your-iphone/

  • Why Lion makes the wheel go round

    Surely somone at Apple owns a Macbook
    and ran it for a month before launching and
    thought
    "No I wont  launch as there are serious issues
    with overheating and the battery life halfs"
    I guess not
    The wheel goes round but the Hamster is not home

    While I do not work for Apple, none in my home have had any issues with Lion on any of our Macs (notebooks and desktop alike)
    Runaway applications can shorten battery runtime
    http://support.apple.com/kb/TS1473

  • Stop me re-inventing the wheel

    I have an application to build that does the following.
    1. Receives a request for data.
    2. Passes the request to other sources.
    3. Aggregates the data from all the sources.
    4. Returns the aggregated data.
    If there are 10 sources and each one takes 10 seconds to return the data and the sources are hit sequentially then it is going to take 100 seconds. However, if I start 10 threads then it will take 10 seconds.
    Is there a pattern for aggregating results like this? And even better a worked example in Java ;)
    Thanks for your advice.

    if you are using java 1.5, then there is a class to
    synchronize the work of multiple threads called a
    cyclic barrier.
    http://java.sun.com/j2se/1.5.0/docs/api/java/util/conc
    urrent/CyclicBarrier.htmlA lot, if not all of those concurrent classes are available for 1.4 also. Search for 'Doug Lea Concurrent' on Google.

  • Managing shared assets? (Re-inventing the wheel)

    My company has been using Eloqua for quite some time. When I joined, I found a long list of shared assets -- some dating back to the Eisenhower administration.
    During my Eloqua University training, I've been encouraged to "share" assets with my team whenever possible. However, I'm not entirely clear on how to best take advantage of useful assets that a long-departed co-worker may have created.
    For example, let's say that I created a shared filter that gives me a list of all people in the US who would gladly trade a cow for a sack of Magic Beans.
    I save it as a shared filter (and maybe or maybe not include the optional description)
    Now, assume that a co-worker in another department (perhaps in another country, who probably doesn't know me) needs to find a list of customers who are interested in Magic Beans.
    Other than wading through the hundreds of shared filters that have accumulated in the system over the years, is there a "Smart" way of finding that filter (and, by extension, any useful shared asset?)
    I am eager to share my new assets -- but even more eager to leverage what the more-experienced Eloquans have shared.
    Thanks!!

    I'm an Eloqua newbie -- in my "Fundamentals" classes, the instructors advised me that the "Descriptions" fields were ignored by the Eloqua search bots (which seemed really strange).  The question arose from my instructors urging us to "share, share, share" our assets -- but not really providing any assistance to co-workers who might benefit from those shares. (Unless you know what your co-worker wants and you tell them about it, they probably won't find your shared work.)
    I stumbled across the EloquaBulkAPI document, though. When I get a bit more comfortable with the Eloqua GUI, I'll have to dig-in and play with it. 
    (Are there other Eloqua APIs available?) 

  • Trying not to re-invent the wheel...

    Howdy, all;
    I'm sure that some of the tasks in my current project have been done by others. Are there any code repositories out there? I'm not above paying for useful code...
    Specifically, I'm trying to convert a string such as "8+(2+2)" into the string "12". I'm using a streamTokenizer and iterating through, and then nesting when hitting parens. It's a lot of work and I'm just wondering if someone hasn't done all this before...
    So, any repositories out there?
    TIA

    Thank you both! This has pointed me in the direction
    of the resources I needed/wanted.
    BTW, beanshell looked like more, much moree, than I wa
    slooking for, I'm pursuing jbcParser instead.
    Thanks againMore than you were looking for? The following code:import bsh.Interpreter;
    public class BeanShellExample {
         public static void main(String[] args) {
              try {
                   Interpreter bsi = new Interpreter();
                   System.out.println(bsi.eval(args[0]));
              catch (bsh.EvalError ee) {
                   System.out.println("Eval Error: " + ee.toString());
    } produced the following output:
    $ java -classpath ".;bsh-2.0b2.jar" BeanShellExample "8+(2+2)"
    12I am not sure how much easier it could get!
    Good Luck
    Lee

  • XML Reader/Writer

    Is there a simple class for Reading an XML file in, getting it's elements/attributes etc, and one for writing to an XML file?
    Here is a simple XML file contents:
    <?xml version="1.0" ?>
    <java>
    <temp value="98.6 F" />
    </java>
    It's just a few lines of basic text. Right now I am just reading/writing using a standard BufferedReader, PrintWriter combo and the logic flows based on a known tag-flow. But
    what if I dont know what and where different tags in a file? Isent there a Reader-Writer for
    this that will collect the tags and their attributes/values for me???

    Hi there,
    Why do you want to re-invent the wheel when some cars running on these wheels already exists.
    There are APIs that specialize in parsing a XML Document to it's shreds.
    Xerces by http://xml.apache.org/xerces is one of them. The choice that you have is either to use the SAX portion of the API or the DOM portion. The easiest alternative is to use neither and go for the JDOM api. http://www.jdom.org.
    If you want to learn more about xml processing with Java I would advise you read Brett McLaughlin's Java/XML book or look at http://www.ibiblio.org

  • Why not invent a tablet with a i5 or i7 reader, DVI, USB ... who would wear the name of ipac or imad

    why not invent a tablet with a i5 or i7 reader, DVI, USB ... who would wear the name of ipac or imad

    Not sure why a tablet would need a Core i5 or a Core i7, particularly given that it would shorten battery life dramatically, but you can submit your suggestion to Apple here:
    http://www.apple.com/feedback
    The current iPad can output via DVI (using an HDMI to DVI adapter), by the way.
    Regards.

  • Why doesnt Adobe just UPDATE Flash Professional? Arent they reinventing the wheel?

    Congratulations on getting to open beta with Flash Catalyst!
    I know its late in the game to mention something like this but why didnt Abobe just update Flash Professional?
    It seems that the arguments for flash Catalyst center around the following:
    1) smooth workflow between Photoshop & Illustrator, especially because of the same layer view
    2) No coding required to create components out of artwork
    3) Can create FXG  and FXPs to be used in Flash Builder
    4) Can create multi screen aplications
    1) 2) and 3) could all be solved by adding a new types of symbols to Flash Professional's 3 currently available symbols(MovieClip, Button, Graphic)
    1) could be solved by adding a new Sprite symbol.
    Flash Professional needs to be updated to keep up with and match the structure of AS3 anyway.
    Sprites were added in AS3 and now wireframe components are being added to the code structure, why not just at that on the design side as well?
    Sprites are essentially MovieClips with out a timeline.
    So if you created a new Sprite symbol and opened it up in the timeline, you would only see one frame with folders and layers.
    A Sprite symbol is essentially organized the in layers and folders and would just like a photoshop file.
    And if you really want it to look like a Photoshop layout, then you just move the timeline view over to the right.
    This would solve problem 1.  Designers could import their artwork into Flash Professional as a Sprite and it would be a seemless experience.
    Obviously I'm not saying that a bitmap is a sprite. But I am saying that layers of bitmaps and could be organized inside of a Sprite. And the designer could turn any of the assets into a Button, MovieClip, Graphic, Sprite, and hopefully other Classes and WireframeComponents available in Flash.
    2)&3) could be solved by adding a new Symbols for the new Wireframe Components. The Button symbol already has a template with 4 states. Why not update Flash Professional to visually represent more Classes and Component Classes, instead of just the MovieClip Class and the Button Class. Even better, maybe there could be a way to make a template for creating our own wireframe components. Just assign a base class for the wireframe class and a base template, and the introspection view will display accordingly.
    States of the component would be listed out at the top instead of frames,  just like the Button Symbol used to be.  Different layers could be designated for specific graphical parts of the component. The designer would be free to add their own layers if necessary.
    In previous versions of Flash, everything was a movieclip and everthing had a timeline. Thats not the case anymore. The timeline is for intropecting MovieClips, but this view could be different when intropsecting different types of symbols such as Sprites, Buttons, Wireframe Components, and even Custom Wireframe Components(extensible).
    These new Symbols and also Sprites could export to FXG very easily.
    The multi screen applications in 4) look pretty similar to the Slide Presentation Template. Why not just make a new MultiScreen App Template and youre done. these MultiScreenApp Templates could exporte Screens to FXG or export the whole Template to a FXP.
    I applaud the work done on the new wireframe components and FXG. Great Job!
    But, just cant understand why you cant update Flash Professional with new types of Symbols(Sprites, new Buttons and wireframe Component Classes) and a new MultiScreen App Template.
    Flash Professional needs to keep up with AS3 and also needs to export FXG and FXP.
    Why doesnt Adobe focus on on this rather than create a new Tool? These features need to be added to Flash Professional anyway.
    Isnt there more of a disadvantage to having 2  tools for designers that do the same thing?
    I'm sure this issue has been debated before. Can anyone point to me links that have the arguments for creating a separate tool instead of updating?
    Has anyone ever suggested that Flash Professional should keep up with AS3?
    Has anyone ever suggested making Sprites a new symbol in Flash Professional so that it could be more seamless with Photoshop?
    Has anyone ever suggested make Wireframe components in Flash Professional like the Button Symbol in Flash Professional?
    Has anyone ever suggested updating Flash Professional so that it would export FXG and FXP?
    What is your opinion on this?
    -thomasglyn

    @Ross
    Thanks for your explanation. I appreciate your feedback.
    I'm glad we agree that ideally there should be 2 main tools, one for designers(Flash Professional) and one for programming(Flash Builder).
    You had mentioned "But, that assumes this is possible.  As it currently stands it is not" and the reason being "Catalyst, and Builder both use a completely different framework from Professional. The component architecture is drastically different, not to mention the entire backend of the software.".
    You could also argue that, the reasons to make a separate flex component creation tool like Flash Catalyst assumes that updating Flash Professional CS4 is NOT possible. But is the statement about the framework being entirely different really true?
    Well, that depends on what you mean by the term "framework".
    Framework can refer to 3 things in this case.
    1) the component framework
    2) the code framework(AS3)
    3) the flex framework (mxml, fxg)
    If you are refering to #1 then you're right, because Adobe hasnt updated the flash component framework in Flash Professional from Flex3 Halo components to Flex4 Spark components.
    Flash components have gone through many iterations, and the switch from AS2 to AS3 was probably more profound than the new wireless component structure(Spark). And now that we have AS3, isnt the only difficulty creating a intuitive UI in Flash Professional, and adding export features?
    If you are refering to #2 then I think you're incorrect, because Flash Professional has been updated to AS3 and Flex4 Spark components use AS3. I would totally agree with you, if CS4 did not go through all of the trouble updating to AS3.
    If you are refering to #3 then you're right, because Flash Professional doesnt export mxml, fxg, or fxp, but with a little creativity, it would probably be possible to allow such an export. Adding FXG/FXP export features could be solved by creating a new type of project file.  Adobe did this for AS2, AS3, flash lite, etc. Why cant they just make a new AS3/FXG file that only allows you to build fxg/fxp exportable assets.
    Why cant Adobe make a Sprite class the default document class for AS3/FXG projects and when some adds a movie clip asset, export movie clips as swfs or swcs?
    So to be honest, after opening up Flash Catalyst again and looking at it again, I almost get the feeling that its just a Flash Component creation tool with a Photoshop UI, for the new AS3/Flex 4 components(Spark components) that Adobe just refuses to add to CS4.  CS4 uses AS3 and Spark components use AS3.  CS4 needs to be a visual design tool for all the classes in AS3(as much as possible).
    Perhaps Adobe originally meant to name this product...
    ADOBE FLASH COMPONENTS
    Or maybe Adobe Flex Components(but thats no longer true, because Flex 4 will be Flash Builder).
    In regard to "reinventing the wheel". Flash components have been reinvented several times, and I totally agree with you that this is important to "reinvent" components to keep up with new techiques as2,as3,fxg.  You are right, this is a positive thing. However in this case, I am using "reinvent in a negative sense.
    So maybe I shouldnt say "reinvent the wheel", but "reinvent the car".
    Perhaps Adobe is trying to create a wheel for the upperclass RIA programmer Flex car, and isnt making it compatible common designer/programmer Flash car. And when they finished the wheel, and they decided just to make a Segway for the Designers and Flash people to ride, that uses this new wheel.
    You might argue that its more approachable for designers, and designers feel at home because the ui is similar. This is precisely why Adobe should hurry up and finish updating the ui of the Flash Professional IDE so that its ui is more compatable with Photoshop and Illustrator. The fact that Photoshop and Illustrator is the standard for designers are perhaps one of Adobe's greatest advantages.  They could make the designers happy if they just make a Sprite inspector view with layers like photoshop in Flash Professional, instead of using the old "everything
    is a movieclip" paridgim. Flash Professional has already upgraded to AS3 and in AS3 everything isnt a movieclip.  So it would be nice if they could make views for some of the new classes and wireframe components.
    This is the age old debate, update or start from scratch.  I guess I'm saying that I think the hard work of updating to AS3 has already been done, and its just plain wierd that Adobe decides to build a separte tool for components, when they use the same AS3 code base.
    Its just insanely exciting to just think about what could have been if Flash updated and brought on more Designers and at the same time linked in the Flex community. Thats what Flash has always been about! The meeting point between Designers and Programmers.
    To go this far and quit just because of components just leaves me blue.
    It seems that many projects stop at 80% complete and if the developers just spent the extra 20% on fine tuning things then they would have a very high quality product. In this case the remaining 20% is  components, ui, and export. I understand that there are probably many things I dont understand, especially when you through in marketing, and product life cycle.
    But I think Adobe could have done it, if they put as much effort into it as they did to make an entirely new product.
    Maybe we should make some noise before its too late.
    I'm still interested in seeing more links that show the logic behind the initial discussions of this debate when it was first decided.
    pls keep me posted.
    @nwfa & macsavers
    Yes, youre right. it does seem to be their plan.  I just hope they are just testing the waters.  Perhaps after they do the initial selling of Flash Compenents, then maybe they could offer a free update to CS4.
    As I mentioned above, the main reason designers feel at home is because of the UI of Flash Catalyst. UI's can be updated, and I believe Flash Professional can and should update itsui for the reasons I mentioned above.

  • My flash reads the xml, but does not understand the tag php....

    my flash reads the xml, but does not understand the tag php. I want to read my xml dynamically, please help me.
    code:
    stop();
    function randomOrder(targetArray)
        var _loc2 = targetArray.length;
        var _loc3 = [];
        for (var _loc1 = 0; _loc1 < _loc2; ++_loc1)
            _loc3[_loc1] = _loc1;
        } // end of for
        var _loc4 = [];
        for (var _loc1 = 0; _loc1 < _loc2; ++_loc1)
            _loc4[_loc1] = _loc3.splice(Math.floor(Math.random() * _loc3.length), 1);
        } // end of for
        var _loc5 = [];
        for (var _loc1 = 0; _loc1 < _loc2; ++_loc1)
            _loc5[_loc1] = targetArray[_loc4[_loc1]];
        } // end of for
        return (_loc5);
    } // End of the function
    var randomNUM = "?n=" + random(9999);
    _root.lan = 1;
    var homehead;
    var homelink;
    var homelinkwindow;
    var homebg;
    var homeflash;
    var lamp = Array();
    var promo = Array();
    var promobottom = Array();
    var headimg = Array();
    f_xmlwork2 = new XML();
    f_xmlwork2.ignoreWhite=true;
    f_xmlwork2.load("banner.php");
    f_xmlwork2.onLoad = function(sucess){
        if (sucess){
             trace ("XML loaded!");
             f_xmlItemx2 = parseInt(this.firstChild.childNodes[0].firstChild);
             f_totalx2 = f_xmlItemx2.length;
            trace(f_totalx2);
             var _loc12 =0;
             // declarar a imagem de fundo
             homebg = this.firstChild.childNodes[0].firstChild.nodeValue;
             f_headimg = this.childNodes[1];
                 for (var _loc2 = 0; _loc2 < f_headimg.childNodes.length; ++_loc2)    {
    juju = f_headimg.childNodes[_loc2];
    jj = headimg.push({headimg: f_headimg.childNodes[_loc2].attributes.headimg, bgimg: f_headimg.childNodes[_loc2].attributes.bgimg, msgimg: f_headimg.childNodes[_loc2].attributes.msgimg, leftthrow: f_headimg.childNodes[_loc2].attributes.leftthrow, rightthrow: f_headimg.childNodes[_loc2].attributes.rightthrow});
                 //end for
    allpromo = this.childNodes[2];
    jjpromo = allpromo.childNodes;
    for (var _loc2 = 0; _loc2 < allpromo.childNodes.length; ++_loc2)
    trace (jjpromo[_loc2].attributes.title);
    jj = promo.push({img: jjpromo[_loc2].attributes.img, title: jjpromo[_loc2].attributes.title, url: jjpromo[_loc2].attributes.url, window: jjpromo[_loc2].attributes.window, info: jjpromo[_loc2].childNodes[0].nodeValue});
        // end of for
        allpromobottom = this.childNodes[3];
        jjpromobottom = allpromobottom.childNodes;
        for (var _loc2 = 0; _loc2 < allpromobottom.childNodes.length; ++_loc2)
            trace (jjpromo[_loc2].attributes.title);
            jj = promobottom.push({url: jjpromobottom[_loc2].attributes.url, window: jjpromobottom[_loc2].attributes.window, info: jjpromobottom[_loc2].childNodes[0].nodeValue});
        } // end of for
         if (f_xmlwork2.loaded == true)
            headimg = randomOrder(headimg);
            for (var _loc2 = 0; _loc2 < f_headimg.childNodes.length; ++_loc2)
                trace (headimg[_loc2].headimg);
            } // end of for
            play ();
        } // end if
    trace(f_xmlwork2);
    stop();
    PHP code:
    <?
    $link=  mysql_connect("localhost","rnpac_eco","123");
    mysql_select_db("rnpac");
    $dir="banner/";
    $dir1="produtos/img_pro/";
    $dir2="universo/actividades/";
    $sql = 'SELECT tbl_produto.id_produto, tbl_produto.produto, tbl_produto.legenda, tbl_produto.detalhe, tbl_produto.preco, tbl_produto.produto_cat_id, tbl_detalhe_produto.proprietario, tbl_detalhe_produto.local, tbl_detalhe_produto.qualidade, tbl_detalhe_produto.alcool, tbl_detalhe_produto.acidez, tbl_detalhe_produto.ph, tbl_detalhe_produto.informacao, tbl_detalhe_produto.gestor, tbl_detalhe_produto.condicionamento, tbl_detalhe_produto.detalhe_t, tbl_detalhe_produto.interesse, tbl_detalhe_produto.transporte, tbl_detalhe_produto.produto_id, tbl_imagem_produto.id_imagem, tbl_imagem_produto.imagem1, tbl_imagem_produto.imagem2, tbl_imagem_produto.imagem3, tbl_imagem_produto.imagem4, tbl_imagem_produto.imagem5, tbl_imagem_produto.imagem6
    FROM tbl_cat_produto, tbl_produto, tbl_detalhe_produto, tbl_imagem_produto WHERE tbl_produto.id_produto = tbl_detalhe_produto.produto_id AND tbl_produto.id_produto = tbl_imagem_produto.produto_id ORDER BY RAND()';
    $resultado = mysql_query($sql)
    or die ("Não foi possível realizar a consulta.");
    $row1=mysql_fetch_array($resultado);
    $sql = "SELECT  tbl_sub_universo.id_subuniverso, tbl_sub_universo.subuniverso, tbl_sub_universo.universo_id, tbl_actividade.id_actividade, tbl_actividade.entidade, tbl_actividade.legenda, tbl_actividade.subuniverso_id, tbl_actividade.det, tbl_actividade.preco, tbl_actividade.data, tbl_detalhe_actividade.actividade_id, tbl_detalhe_actividade.periodo, tbl_detalhe_actividade.descricao, tbl_detalhe_actividade.programa, tbl_detalhe_actividade.informacoes, tbl_detalhe_actividade.actividades, tbl_detalhe_actividade.localizacao, tbl_detalhe_actividade.locais, tbl_detalhe_actividade.servicos, tbl_imagem_produto.id_imagem, tbl_imagem_produto.imagem1,tbl_imagem_produto.imagem2, tbl_imagem_produto.imagem3, tbl_imagem_produto.imagem4, tbl_imagem_produto.imagem5, tbl_imagem_produto.imagem6, tbl_imagem_produto.actividade_id FROM  tbl_sub_universo, tbl_actividade, tbl_detalhe_actividade, tbl_imagem_produto WHERE tbl_actividade.id_actividade =tbl_imagem_produto.actividade_id AND tbl_actividade.id_actividade =tbl_detalhe_actividade.actividade_id ORDER BY RAND()";
    $resultado = mysql_query($sql)
    or die ("Não foi possível realizar a consulta.");
    $row2=mysql_fetch_array($resultado);
    $query='SELECT * FROM tbl_banner ORDER BY RAND()';
    $resultado = mysql_query($query);
    echo' <?xml version=\"1.0\"?>
    <home_left_headline>
    <bgimg>'.$dir2.''.$row1['imagem1'].'</bgimg>
    </home_left_headline>
    <home_flash>';
    while($row = mysql_fetch_array($resultado)) {
    echo'<swf headimg="" bgimg="" msgimg="" leftthrow="" rightthrow=""></swf>';
    echo'</home_flash>';
    echo'<promotop>
    <promo img="" title="" url="" ><![CDATA[]]></promo>
    <promo img="" title="" url="" ><![CDATA[]]></promo>
    </promotop>';
    mysql_close($link);

    i have two files banner.php, for testing my flash banner.
    This one works:
    -------------------------------| banner.php |---------------------------------------------
    <?xml version="1.0"?>
    <content>
    <settings>
    <menu X='160'/>
    </settings>
    <nav>
    <main Name='HOME' Link='home.swf'/>
    <main Name='EMPRESA' Link='home.swf' >
    <sub Name='HISTORIA' Link='content.swf' toLoad='content/contentrosa.xml'/>
    <sub Name='OBJECTIVO' Link='content.swf' toLoad='content/contentrosa2.xml'/>
    </main></nav>
    </content>
    -------------------------------|end  banner.php |---------------------------------------------
    this other does not work:
    -------------------------------| banner.php |---------------------------------------------
    <?php
    echo"<?xml version="1.0"?>
    <content>
    <settings>
    <menu X='160'/>
    </settings>
    <nav>
    <main Name='HOME' Link='home.swf'/>
    <main Name='EMPRESA' Link='home.swf' >
    <sub Name='HISTORIA' Link='content.swf' toLoad='content/contentrosa.xml'/>
    <sub Name='OBJECTIVO' Link='content.swf' toLoad='content/contentrosa2.xml'/>
    </main></nav>
    </content>";
    ?>
    -------------------------------|end  banner.php |---------------------------------------------
    Why? What is wrong? why does my flash does not understand the tag php
    Message was edited by: armandix

  • Why does the wheel for the apps close and how to keep it open?

    why does the wheel for the apps on the tool bar close and how to keep it open? i've checked thru all the information on your site..

    Exactly which driver did you downlaod and from where? By "GET STRAT", do you mean one of the Getting Started VIs? Error 5 means "NI-488:  Command requires GPIB Controller to be System Controller." Are you using GPIB to control the instrument? If so, what type of board are you using and which version of VISA and NI-488? If the error only occurs on a read, try issuing the query from MAX and see if the error occurs there. In a couple of the Xantrex drivers I looked at, there seemed to be some fixed delays after a write and before a read. You might try increasing those values to see if that makes any difference.

  • Why is my Mac Air book Slow, its either freezes or I see the wheel, stand still forever....

    Why is my Mac book air freezing up, or I see the wheel, takes forecer, or I have to shut down

    The next time you have the problem, note the exact times when it starts and ends: hour, minute, second.
    If you have more than one user account, these instructions must be carried out as an administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left.
    Scroll back in the log to the time you noted above. Select any messages timestamped during that interval. Copy them (command-C) to the Clipboard. Paste (command-V) into a reply to this message.
    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Anonymize before posting.

  • Why isn't the scroll wheel working properly with Firefox 4?

    I have a new Windows 7 PC at work with Firefox 4 on it. The scroll wheel on my mouse is not working right. It will work if I use Internet Explorer but I have trouble getting it to work with Firefox. Usually what I have to do is click the wheel to get that mode of scrolling where you move the mouse up and down to scroll the screen and that will work. And then when I click the wheel again to get out of that mode, my scroll wheel will work as expected. But I don't want to have to do that all the time. And sometimes that trick doesn't work. The scroll wheel is working fine with MS Excel and Lotus Notes and Internet Explorer, etc, so it seems to be something the new Firefox has an issue with.

    I fixed my problem! I was messing around in msconfig to turn off Lync from my Startup list and noticed something called Mouse Suite 98 was in my Startup. I did a quick google check and learned I could remove it without doing any harm. And voila! My scrollwheel is working properly with Firefox, finally! Hope this helps someone out there.

  • Why was deleted the RSS reader in Mail on OS X Mountain Lion?

    Why was deleted the RSS reader in Mail on OS X Mountain Lion?
    How can I re-enable the RSS reader?

    All RSS Readers that I tested from MacAppStore are much worst than Mail's in Lion.
    Hate them all. I'm using blogtrottr.com to compile all RSS and send me via email. But it's flooding my mailbox. There're a bunch of them that require a Google Reader account, and I won't do that. It doesn't matter to Google which RSS I'm following.
    I wish Apple put RSS reading back to Mail. Stupid idea taking it off.

  • I have Adobe Reader X on Windows Vista. Why doesn't the Printer for Adobe PDF show up in my Hardware/printers? Or can I add it to the Hardware/Printers?

    I have Adobe Reader X in Windows Vista. Why doesn't the Adobe PDF show up as a printer in my Hardware/Printers? Or can I add it to the Hardware/Printers? And how?

    Adobe Reader - FREE - reads PDF files, prints them, fills forms.
    Adobe Acrobat - $$ - as Reader, and makes PDFs and edits them, sorta, and does a bunch more.
    So if you had Acrobat try and find the license to avoid having to pay again...

Maybe you are looking for