Embedding External XML

Hey guys. Based of the ModestMap API example for flex, I want to be able to embed an external XML file instead of directly populating the xml tags on the main app. i have tried different approaches, the markers are not showing up. thanks in advance!
here is the sample code from modestmap
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/halo"
  minWidth="1024" minHeight="768" creationComplete="init()" viewSourceURL="srcview/index.html" xmlns:mx1="library://ns.adobe.com/flex/mx">
   <fx:Script>
  <![CDATA[
   import mx.core.UIComponent;
   import com.modestmaps.TweenMap; 
   import com.modestmaps.mapproviders.OpenStreetMapProvider;
   import com.modestmaps.mapproviders.yahoo.YahooHybridMapProvider;
   import com.modestmaps.geo.Location;
   import com.modestmaps.extras.ZoomSlider;
   import com.modestmaps.extras.HandCursor; 
   import com.custom.PointMarker;
   import com.custom.infoPanel;
   [Bindable]private var _map:TweenMap; 
   private var _mapUI:UIComponent;
   [Bindable]private var _initialLat:Number = 40.668903;
   [Bindable]private var _initialLong:Number = -111.680145;
   [Bindable]private var _initialZoom:Number = 6;
   private var _mouseWheelZoomCenter:Location;
   private var _mouseWheelZoom:int;
   private var resortMarker:PointMarker; 
   private var _panel:infoPanel;
   [Embed("img/marker.png")]
   protected var MarkerImage:Class;
   private var srcXML:XML =
   <root>
  <location>
  <name>Alta Ski Resort</name>
  <lat>40.588063</lat>
  <long>-111.637659</long>
  <description>Home of the Greatest Snow on Earth</description>
  </location> 
  <location>
  <name>Crested Butte Resort</name>
  <lat>38.899932</lat>
  <long>-106.964249</long>
  <description>Amazing skiing with small town charm</description>
  </location>
  </root>; 
   private function init():void
   _map = new TweenMap(mappanel.width, mappanel.height, true, new OpenStreetMapProvider()); 
   _map.setCenterZoom(new Location(_initialLat, _initialLong), _initialZoom);
   mapCore();
   private function mapCore():void
   _map.addEventListener(MouseEvent.MOUSE_WHEEL, mouseWheelHandler); 
   _mapUI = new UIComponent();
   _mapUI.addChild(_map); 
   var zoomslider:ZoomSlider = new ZoomSlider(_map);
   zoomslider.x = mappanel.width - zoomslider.width*2;
   zoomslider.y = 30;
   _mapUI.addChild(zoomslider); 
   var handcursor:HandCursor = new HandCursor(_map);
   _mapUI.addChild(handcursor);
   mappanel.addElement(_mapUI);
   _panel = new infoPanel();
   _panel.containerHeight = mappanel.height;
   _panel.containerWidth = mappanel.width;
   mappanel.addElement(_panel); 
   addMarkers();
   private function addMarkers():void
   for each (var resort:XML in srcXML.location){
   resortMarker = new PointMarker(); 
   var markerImage:Bitmap = new MarkerImage() as Bitmap;
   markerImage.x = -markerImage.width/2
   markerImage.y = -markerImage.height/2
   resortMarker.addChild(markerImage);
   resortMarker.resortName = resort.name;
   resortMarker.resortDesc = resort.description;
   resortMarker.addEventListener(MouseEvent.CLICK, handleMouseClick); 
   _map.putMarker(new Location(resort.lat, resort.long), resortMarker); 
   private function mouseWheelHandler(e:MouseEvent):void {
   if (e.delta < 0) {
   _map.zoomOut();
   else if (e.delta > 0) {
   _map.zoomIn();
   _mouseWheelZoomCenter = _map.getCenter();
   _mouseWheelZoom = _map.getZoom();
   private function handleChangeProvider(event:Event):void
   mappanel.removeAllElements();
   if(event.target.label == "Virtual Earth")
   _map = new TweenMap(mappanel.width, mappanel.height, true, new YahooHybridMapProvider());
   else
   _map = new TweenMap(mappanel.width, mappanel.height, true, new OpenStreetMapProvider());
   if(_mouseWheelZoomCenter != null && _mouseWheelZoom > 0)
   _map.setCenterZoom(_mouseWheelZoomCenter, _mouseWheelZoom); 
   else
   _map.setCenterZoom(new Location(_initialLat, _initialLong), _initialZoom);
   mapCore();
   private function handleMouseClick(event:MouseEvent):void
   _panel.ptitle = event.target.resortName;
   _panel.pdesc = event.target.resortDesc;
   ]]>
   </fx:Script>
   <s:BorderContainer id="mappanel" width="100%" height="97%"/>
   <mx1:HBox width="100%" horizontalAlign="right">
   <mx1:Button label="Open Street Map" click="handleChangeProvider(event)"/>
   <mx1:Button label="Virtual Earth" click="handleChangeProvider(event)"/>
   </mx1:HBox>
</s:Application>
///////////////////////////////////////I tried for the external XMl//////////////////////////////
[Embed("img/marker.png")]
  protected var MarkerImage:Class;
[Embed(source="data.xml", mimeType="application/octet-stream")]
  [Bindable]
  private var srcXML:Class;
  function some_func():void {
  var my_xml:XML = XML(new srcXML);
////////////////////////////////and/////////////////////////////////////////////////////// ///
private function addMarkers():void
  for each (var resort:XML in srcXML){
  resortMarker = new PointMarker();                                             
  var markerImage:Bitmap = new MarkerImage() as Bitmap;
  markerImage.x = -markerImage.width/2
  markerImage.y = -markerImage.height/2
  resortMarker.addChild(markerImage);
  resortMarker.resortName = resort.name;
  resortMarker.resortDesc = resort.description;
  resortMarker.addEventListener(MouseEvent.CLICK, handleMouseClick);                     
  _map.putMarker(new Location(resort.lat, resort.long), resortMarker);                                                           

Import a schema with the <xs:import/> element.
<xs:import
namespace=namespaceURI
schemaLocation=schemaLocationURI/>

Similar Messages

  • How can I set connection to external XML file with Dreamweaver to buiild AIR app?

    Hello,
    I try to do simple AIR app in dreamweaver. It's not problem
    to use static data. But I'd like to use dynamic data from external
    XML file. I try to use Spry and evrything works fine in web browser
    but i have problem with loading external XML data into my app in
    AIR. Can I simply transform my spry based html app into AIR?
    What should I add to do this?
    Pawel

    Daniel Lichtenwald wrote:
    What are the requirements and steps for arranging to receive this large file using File Transfer Protocol (FTP)?
    Usually, we don't speak of "receive" when using FTP, since the file is transferred from server to client, so it's more of a case of "download".
    At your end, it's simple. You use an FTP client; under SL, that includes Finder and Safari, so you don't even need to get any additional software.
    At the other end, it's more complicated; the 'sender' must set up an FTP server on his machine.
    Alternatively, you can set up your own Mac as an FTP server, and have the 'sender' connect to you with an FTP client and upload the file; but, if your Mac lives behind a router, then you have more work to do with the router settings.
    That's why it's much easier to use the file sharing services mentioned above -- if they are available in both sender's and receiver's locations. (Keep in mind that some countries block access to all those mentioned -- except perhaps <www.transfer.ro>, of which I know absolutely nothing.)

  • Problem loading external XML

    Hi, I"m having a problem with an Applet.
    I wrote a program that acceses an external XML file located on my webspace, but when I converted this program to run in a webbrowser I get console errors when trying to acces the file.
    Here's my code:
    package javaapplication;
    import java.applet.Applet;
    import java.awt.BorderLayout;
    import java.awt.Canvas;
    import java.util.ArrayList;
    import javaapplication7.parsing.XmlParser;
    public class Main extends Applet {  
        protected Thread gameThread = null;
        private Canvas display_parent = null;
        private boolean running = false;
        private XmlParser parser = new XmlParser();
        public void destroy() {
            remove(display_parent);
            super.destroy();
            System.out.println("Clear Up");
        public void start() {
            gameThread = new Thread() {
                public void run() {
                    running = true;
                    System.out.println("Entering Gameloop");
                    gameLoop();
            gameThread.setDaemon(true);
            gameThread.start();
        public void stop() {
        public void init() {
            setLayout(new BorderLayout());
            try {
                display_parent = new Canvas() {
                    public final void removeNotify() {
                        super.removeNotify();
                display_parent.setIgnoreRepaint(true);
                display_parent.setSize(getWidth(),getHeight());
                add(display_parent);
                display_parent.setFocusable(true);
                display_parent.requestFocus();
                setVisible(true);
            catch(Exception e) {
                System.err.println(e);
                throw new RuntimeException("Unable to create display");
        private void gameLoop() {
            ArrayList <String> temp = null;
            while (running) {    
                temp = parser.SearchXml("http://users.telenet.be/decoy/FacebookApp/xml/BulletType.xml", "BulletList",2);
                for (int i=0;i<temp.size();++i) {
                    System.out.println(temp.get(i));
    }my html file :
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
      <head>
        <title>AppletLoader</title>
      </head>
      <body>
      <applet code="javaaplication.Main" archive="JavaApplication7.jar" codebase="." width="800px" height="600px">
        <!-- The following tags are mandatory -->
        <!-- Name of Applet, will be used as name of directory it is saved in, and will uniquely identify it in cache -->
        <param name="al_title" value="appletloadertest">
        <!-- Main Applet Class -->
        <param name="al_main" value="javaapplication.Main">
        <!-- logo to paint while loading, will be centered -->
        <param name="al_logo" value="appletlogo.png">
        <!-- progressbar to paint while loading. Will be painted on top of logo, width clipped to percentage done -->
        <param name="al_progressbar" value="appletprogress.gif">
        <!-- List of Jars to add to classpath -->
        <param name="al_jars" value="JavaApplication7.jar">
        <!-- signed windows natives jar in a jar -->
        <param name="al_windows" value="lib/windows_natives.jar.lzma">
        <!-- signed linux natives jar in a jar -->
        <param name="al_linux" value="lib/linux_natives.jar.lzma">
        <!-- signed mac osx natives jar in a jar -->
        <param name="al_mac" value="lib/macosx_natives.jar.lzma">
        <!-- signed solaris natives jar in a jar -->
        <param name="al_solaris" value="lib/solaris_natives.jar.lzma">
        <!-- Tags under here are optional -->
        <!-- Version of Applet, important otherwise applet won't be cached, version change will update applet, must be int or float -->
        <!-- <param name="al_version" value="0.1"> -->
        <!-- background color to paint with, defaults to white -->
        <!-- <param name="al_bgcolor" value="000000"> -->
        <!-- foreground color to paint with, defaults to black -->
        <!-- <param name="al_fgcolor" value="ffffff"> -->
        <!-- error color to paint with, defaults to red -->
        <!-- <param name="al_errorcolor" value="ff0000"> -->
        <!-- whether to run in debug mode -->
        <!-- <param name="al_debug" value="true"> -->
        <!-- whether to prepend host to cache path - defaults to true -->
        <param name="al_prepend_host" value="false">
        <!-- main applet specific params -->
        <param name="test" value="test">
      </applet>
      <p>
        if <code>al_debug</code> is true the applet will load and extract resources with a delay, to be able to see the loader process.
      </p>
      </body>
    </html>console errors :
    network: Connecting http://users.telenet.be/decoy/FacebookApp/xml/BulletType.xml with proxy=DIRECT
    network: Connecting http://users.telenet.be/crossdomain.xml with proxy=DIRECT
    network: Connecting http://users.telenet.be:80/ with proxy=DIRECT
    network: Connecting http://users.telenet.be/crossdomain.xml with cookie "__utmz=226366239.1223468593.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none); st8id_wlf_%2Etelenet%2Ebe_%2F=TE5HVExNX0ZMQVNI?81c37b0684bbf41f4c42c63db814f879; __utma=226366239.605535372.1223468593.1223556298.1224764225.3"
    network: Connecting http://www.zita.be/users_error/ with proxy=DIRECT
    network: Connecting http://www.zita.be:80/ with proxy=DIRECT
    java.security.PrivilegedActionException: java.io.FileNotFoundException: http://www.zita.be/users_error/
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sun.deploy.net.CrossDomainXML.check(Unknown Source)
         at com.sun.deploy.net.CrossDomainXML.check(Unknown Source)
         at sun.plugin2.applet.Applet2SecurityManager.checkConnect(Unknown Source)
         at sun.net.www.http.HttpClient.openServer(Unknown Source)
         at sun.net.www.http.HttpClient.<init>(Unknown Source)
         at sun.net.www.http.HttpClient.New(Unknown Source)
         at sun.net.www.http.HttpClient.New(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
         at java.net.URL.openStream(Unknown Source)
         at facebookgame.parsing.XmlParser.SearchXml(XmlParser.java:38)
         at facebookgame.entity.ShotEntity.<init>(ShotEntity.java:62)
         at facebookgame.InGameState.Enter(InGameState.java:75)
         at facebookgame.FacebookApp.changeToState(FacebookApp.java:258)
         at facebookgame.MenuState.CheckPlayerInput(MenuState.java:106)
         at facebookgame.MenuState.StateCycle(MenuState.java:139)
         at facebookgame.FacebookApp.gameLoop(FacebookApp.java:212)
         at facebookgame.FacebookApp.access$200(FacebookApp.java:17)
         at facebookgame.FacebookApp$1.run(FacebookApp.java:60)
    Caused by: java.io.FileNotFoundException: http://www.zita.be/users_error/
         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
         at com.sun.deploy.net.CrossDomainXML$2.run(Unknown Source)
         ... 22 moreHopefully some1 can help me :).
    Edited by: Veko on Dec 7, 2008 2:51 PM

    But why is it possible then to succesfully acces the .xml file with a non-web applet
    This code reads the file perfectly of my webspace...
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.net.URL;
    public class XMLHandler {
         public static void SearchXml(){
            try{
                InputStream filesource = new URL("http://users.telenet.be/decoy/FacebookApp/xml/BulletType.xml").openStream();
                System.out.println("found input source");
                byte[] readIn = new byte[8];
                int bytesRead = filesource.read(readIn);
                OutputStream stream = System.out;
                while(bytesRead != -1){
                     stream.write(readIn);
                     bytesRead = filesource.read(readIn);
            } catch (Exception e){
                e.printStackTrace();
         public static void main(String[] args){
              SearchXml();
    }it returns the contents of the xml perfectly
    <?xml version="1.0"?>
    <bulletList>
    <bullet type="1">
         <speed>1.0f</speed>
         <size>O.65f</size>
         <damage>1</damage>
         <texture>"res/shot.png"</texture>
         <sound>"blah.ogg"</sound>
    </bullet>
    <bullet type="2">
         <speed>1.5f</speed>
         <size>O.65f</size>
         <damage>1</damage>
         <texture>"res/shot.png"</texture>
         <sound>"blah.ogg"</sound>
    </bullet>
    </bulletList>Does a applet in a browser have somekind of weird restriction that I haven't heard of yet ?
    Edited by: Veko on Dec 8, 2008 2:28 AM
    Edited by: Veko on Dec 8, 2008 2:29 AM
    Edited by: Veko on Dec 8, 2008 2:29 AM

  • Variable substitution in external XML

    I'm loading an external xml file using the Loader class, and
    then assigning the loaded content to a variable when the loading is
    complete, like this:
    function x_loaded(e:Event) {
    var rotation_value:String = "-180";
    mc_xml = XML(x_loader.data);
    If I include in my xml file a value to be substituted, for
    example <image rotation={rotation_value}/>, the parsing of
    the xml fails when assigning to the mc_xml value.
    Is it possible to substitute values in externally loaded xml?
    alternatively, is there a way to simply SET the values,
    something like image.attribute("rotation")="180";
    thanks in advance

    Thanks, k
    I think all the code that's germane is in my first post, but
    here's a bit more detail. It turns out I was using URLLoader, sorry
    to confuse the issue. Your help is appreciated. The failure occurs
    on the line that reads "mc_xml = XML(x_loader.data);" and the error
    message is: "TypeError: Error #1090: XML parser failure: element is
    malformed."
    my code:
    var mc_xml:XML;
    var x_loader:URLLoader = new URLLoader();
    var x_url:String = "motion.xml";
    var x_req:URLRequest = new URLRequest(x_url);
    x_loader.addEventListener(Event.COMPLETE,x_loaded);
    x_loader.load(x_req);
    function x_loaded(e:Event) {
    var rotation_value:String = "-180";
    mc_xml = XML(x_loader.data);
    Here's the (simplified) external xml file. It's generated by
    a "Copy motion as ActionScript 3.0" and everything works fine
    before I try to substitute some variables in the xml. You can see
    the substitution in the penultimate line.
    <Motion duration="20" xmlns="fl.motion.*"
    xmlns:geom="flash.geom.*" xmlns:filters="flash.filters.*">
    <source>
    <Source frameRate="25" x="784.3" y="78.1" scaleX="1"
    scaleY="1" rotation="180" elementType="movie clip"
    instanceName="mc" symbolName="Symbol 2">
    <dimensions>
    <geom:Rectangle left="0" top="0" width="288"
    height="209"/>
    </dimensions>
    <transformationPoint>
    <geom:Point x="0.2586805555555556"
    y="0.3923444976076555"/>
    </transformationPoint>
    </Source>
    </source>
    <Keyframe index="0">
    <tweens>
    <SimpleEase ease="0"/>
    </tweens>
    </Keyframe>
    <Keyframe index="19" x="-709.8" y="3.9000000000000057"
    rotation={rotation_value} />
    </Motion>
    Thanks in advance for any insight you can provide

  • XML Embedded in XML

    What are the ramifications of embedding an XML document in another XML document when the parser is the JAXP DOM parser? Specifically; if my schema says that the embedded XML is of type "string", then the parser chokes when it sees the embedded XML tags in the data region - it comes back complaining that the field is a simple type and must have no children.
    Is it common to embed XML in XML like this ...is it an intended/envisioned/supported use of the JAXP parser? If so, there must be a standard way of making it work. In this case an XML message is being used to send an updated (.xsd)Schema - embedded in the XML document as one of its fields.

    Okay that's helpful but the intent really is to have the entire embedded xml field treated as text such that it can be retrieved just as the contents of a text field can be retrieved (in this case the embedded xml is an actual XML Schema). CDATA won't work in this case (if I understand correctly) since the embedded XML does indeed have newlines. If I use the "any" type, the embedded XML is treated as XML - not as text- so it can't be retrieved as the "contents" of a single field (using getNodeValue() for example). I can give it a "lax" or "skip" attribute but it either way I can't retrieve it as I would one large text field. That's what I'm really trying to find out ...if it's possible to have the embedded XML file treated as a single text field that can be retrieved as a single field.

  • Import external xml file in PDF using Livecycle

    I require sending some values in main xml file from the external xml file during sending mail on button click. Doing so, I want to read values from external file into a hidden field or send the external xml/text file as an attachment.
    1. Is there any feature in live cycle to attach multiple xml/text files in mail using button click?
    2. Is there any way to read an external xml file to pre-populate a textbox using javascript?
    Kindly help me to find out the solution.
    Thanks in advance
    Vikram Kumar

    Hi,
    1) You can do this with a script. But this script works only with the Acrobat Pro not with the Adobe Reader!!
    2) Sure.
    You open your form.
    Go to File | Form Properties |  Preview | then choose your xml-file
    Then you have to got to the textobject | mark this | go to "Object" | "Binding"
    Here you can bind the field: $record.PRINTJOB.PMSDATA.ObjectNameXML (You have to adapt this in the path in your XML to the field in the XML)
    If you make a preview you will see the value of the XML in your textfield.
    You can also script the databinding. You have to go to the initalize.event and write:
    this.rawValue = xfa.record.PathToYourFieldInYourXML.ObjectNameXML.value;
    Hope it will helps you,
    Mandy

  • Using external XML document to update / change text fields inside of published captivate output.

    Hello
    I currently have a project where the client has requested to have the ability to update the text fields inside the project at a later date.
    This is due to the nature of the content changing rather rapidly, i would like to set this up so the client can manage this them selfs.
    What would the best way to do this be?
    I'm thinking XML, an external XML sheet were by Captivate imports the text from this XML sheet and then displays it within the specific text fields contained within the captivate output.
    This way the client would just update the external XML document(cut and paste the text in) and then the text would be dynamically updated in the published Captivate document.
    any help would be amazing !
    Thanks in advance
    Nick

    Hi Lieve
    But isn't this thread more about an end user having an ability to change text after the Captivate has been published and delivered? I could see where that might be useful if making changes then publishing to create a new output. But I'm interpreting that the situation here is that a Captivate project has been published and delivered, and some mechanism is desired that allows the recipient to modify an external XML file to influence changes in the already compiled Captivate output.
    Cheers... Rick

  • Read external XML stream into a field

    Hello all -
    I have been trying to get this working for a week now and still no luck. It seems like it's possible to find field values to external XML file, but Acrobat tries to parse the XML and be smart about it.
    I have a custom form logic that needs to read an XML file from a URL and assign the stream to a form field that can later be accessed via FormField.rawValue.
    The XML is rather basic - something like
    1
    2
    3
    4
    I tried the xfa.connectionSet to no avail. I am now trying to bring in that value with SOAP, but have been reading that it might give prompts in Reader.
    Can I simply read an external URL and assign the server response to a variable or a field ?
    My apologies for the super-basic question!!
    Thanks in advance!
    Frank

    I get the following error, probably means the file referenced is not available...
    SQL Error: ORA-22806: not an object or REF
    22806. 00000 - "not an object or REF"
    *Cause:    An attempt was made to extract an attribute from an item that is
    neither an object nor a REF.
    *Action:   Use an object type or REF type item and retry the operation.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Problem with  Jdeveloper Embedded OC4J  XML parsing

    Hi all,
    I am having a problem getting jdeveloper to work well. If I use jdeveloper to build the WAR file for my app and I deploy to Tomcat, the app runs fine with no error.
    However, if I try to run my app within the jdeveloper, I get this error -
    08/06/10 19:11:10 com.ibatis.dao.client.DaoException: Error while configuring DaoManager. Cause: java.lang.RuntimeException: XML Parser Error. Cause: oracle.xml.parser.v2.XMLDOMException: invalid character [ in name
    Caused by: java.lang.RuntimeException: XML Parser Error. Cause: oracle.xml.parser.v2.XMLDOMException: invalid character [ in name
    08/06/10 19:11:10 at com.ibatis.dao.engine.builder.xml.XmlDaoManagerBuilder.buildDaoManager(XmlDaoManagerBuilder.java:112)
    08/06/10 19:11:10 at com.ibatis.dao.client.DaoManagerBuilder.buildDaoManager(DaoManagerBuilder.java:47)
    I have tried to turn off XML parsing within Jdeveloper but no luck. I don't understand why jdeveloper will be trying to implicitly parse the XML doc, and wont even do it well.
    Is there a way I can turn off Embedded OC4J XML parsing ? and let it just use the parser in the application ? I mean Tomcat works fine with this application.
    Please help !

    I think maybe you use wrong adf lib when deploying your project to the OC4J.
    You can update your oc4j in the jdev.[JDEV->Tools->ADF Runtime Installer-> Standalone OC4J].
    Good luck
    Hart

  • _blank link in external xml generates pop up blocker

    I have links that are read into an html formatted text field
    from an external xml file. My problem is that I would like the link
    to load a new browser window when clicked using _blank - but that
    generates pop up blocker in firefox.
    I've tried passing the link to a function in flash to do the
    same thing , but no luck with that.
    The links all work OK (as soon as I put _self in it performs
    as expected)
    Does anyone know a solution to this problem
    thanks

    you could try using javascript to open the popup and see if
    your popup blocker is less sensitive about that. you would use the
    externalinterface class in flash to communicate between
    actionscript and javascript.

  • Bulleted Text in External XML w/CSS

    I have a TexatArea component which is loading text from an
    external XML file into a Flash 8 SWF. The text is being styled with
    a CSS (which is working fine in every other respect on this text
    (font, color, margins, etc.). I have created a custom .class in the
    CSS called <bulletText> and have assigned my text the bullet
    properties by taggeing those items in the XML with the
    <bulletText> tag.
    I am guessing one of two problems: (1) I am not using the
    right code in the CSS to make text appear with "bullets" or the
    TextArea component in Flash will not display CSS formatted XML?
    I created the CSS in GoLive CS2 and the Inspector in GoLive
    shows the bulleted example text to be correct based on my
    formatting of the CSS. Am I missing something?

    Hi
    You are calling the displayDates() at creationcomplete() of DateChooser. But at that time your xImages(xml) is null because it is not initialized and the HttpServices is not returned the result.
    So initialize your xml and call displayDates() after httpservices returns the result.
    Hope this helps
    Regards
    Rush-me

  • External XML data for more charts in a single page

    I am using a plot chart which gets data from an external XML file through <mx:HTTPService>
    I create another chart in the same page which also gets data from another XML file.
    How can i provide data to this chart through the HTTP Service ?
    - Sen

    I hope i've understood well what you want to do.
    Easily you could define 2 different httpservice with different url and bind them to chart.
    hope this help!
    bye!

  • External XML files in Flash iPhone apps

    Hi everyone. I know that apple has loosened up on what is and isn't allowed on the app store these days, such as flash. I was thinking of writing an app that would call upon a web based xml file to call up pictures to display in the iPhone.
    I know Apple doesn't allow apps that call upon external scripts but it's not an executable script, its a list of images and where they are stored. Does anybody have any input on whether Apple may have a problem with this?
    Cheers

    don't know.
    I'm not sure of the differences between actionscript in flash and javascript in the browser but you could call for an XML file to be sent as json data from the script if accessing external XML files directly is not allowed.
    Problem is that XML can contain anything you want it too... it could contain a script itself.

  • Read a word embedded in xml tag

    Hi everyone...
    i am an university student. i am doing a final year project.....dealing with program
    i want to ask how to read a word embedded in xml tag...
    that is e.g apple
    xml file: <fruit> apple </fruit>
    <price>$4.00</price>
    how to read apple from xml file and using a variable to store the word using java?
    pls help.....

    If you want to parse XML (more than the simple example you give), I recommend you go here: http://xml.apache.org and download Xerces for Java.
    If you want to parse the text yourself, look at:
    java.lang.String methods: indexOf(String,int) and substring(int,int)
    java.util.StringTokenizer

  • Retrieving Images Embedded In XML (from rss using xsl)

    I am trying to comsuem and rss feed into my site but i dont seem to see an "image" element in the Item node. can someoen tell me how to retrieve Images Embedded In XML dreamwaever. i am using an xsl fragment on a pap server.
    Doh

    Hi there, I am using a jsp page that takes a xml page from the internet (user defines what page it is) it then takes the xsl feed and transforms the xml with a TransformerFactory object to get the results as an html page, the error is received when the jsp page is called
    Ian

Maybe you are looking for

  • How can I make faces work properly?

    I have iPhoto version 9.2.1 (628) and the main thing that I want to be able to do with the Face Feature is to tag a face of any photo that I choose to. 1) the 'Name' button is missing whenever I open a photo 2) the 'Add a face' of the 'info' feature

  • Oracle automatic statistics optimizer job is not running after full import

    Hi All, I did a full import in our QA database, import was successful, however GATHER_STATS_JOB is not running after sep 18 2010 though its enable and scheduled, i did query last_analyzed table to check and its confirmed that it didnt ran after sep18

  • Sap script Form 16 A -

    We are doing a upgrade from 4.6 c to ECC6 . I need to display a acknowledgement number in form no 16 A. How can i do this.Could anyone help me in this regard. Form name: J_1IEWT_CERT

  • P70 Gallery

    Hello to everybody, I just bought Lenovo P70 4G LTE, in which the Gallery app is playing Videos automaticlly while scrolling. Is this a special feature or problem. if it is a feature then how it can be disabled. I read in some of the Phone specificat

  • Z3 Compact using mobile data even when disabled.

    Hey there, my new z3 compact is connecting to the mobile internet every 3 hours and causing costs! Mobile data is disabled in the setting and in the quick menu. WIFI is available all the time. In the settings it shows 0MB of volume for all apps. Besi