Advanced XML connections

Hey there!
I'm fairly new to Flex development so please excuse my
ignorance if I've just managed to miss some feature or API
completely!
My situation is this:
I wish to develop a program which will communicate with my
server via a high-performance XML connection using a (currently
proprietary, open-source later) binary XML format. Since I'm the
one who has been writing the code for it in Java I have full access
to the source to port to Flex/action-script. What I'm wondering is
what (if any) is the standard API for XML parsers
(readers/writers)? My format is a StAX ("pull") parser for XML
streams, and I have classes that allow me to use XPaths efficiently
over it.
I would like very much to make it using a standard Flex API,
extending where required to leverage additional features, as this
would be more useful I think in future when I release it as an
open-source project.
Further to this, I will be hoping to use this with an SSL
connection to keep data private, I am wondering if Flex already has
SSL functionality, and how fast it is?
Please don't dispute the use of binary XML here, since I'm
communicating between two parties then readability isn't an issue
(except debugging, in which case it's easy to output as text with a
third party, or by dropping in a regular XML reader/writer). For my
intended data-set I get around a 40-50% reduction in message size,
haven't tested relative performance compared to text-XML parsers,
but it should be faster since it doesn't need to do much work.
So I'm looking for an idea of what I should implement or
extend and what I will need to develop from scratch to make this
work? My aim is to develop this as an AIR application, but may
compile for browser as well since I have no major requirement for
local storage.
Cheers

Hmm, thanks for the response! While that looks like an
interesting way of manipulating XML, it appears to be DOM-based?
The method I'm hoping to implement is StAX or "pull" parsing. A
simple example (in Java) using my parser could look like this.
Note: I'm using hyphens in place of working tabs since there seems
to be no equivalent of <pre> on HTML here that I see:
Example XML:
<items>
- <category>Mixed</category>
- <item>Bread</item>
- <item>Monkey</item>
</items>
Java code (assuming an XMLStreamReader is positioned inside
the <items> tag:
int event;
while ((event = reader.next()) !=
XMLStreamConstants.END_DOCUMENT) {
- switch (event) {
- - case START_ELEMENT:
- - String name = reader.getLocalName();
- - if (name.equals("item"))
System.out.println("\t"+reader.getElementText());
- - else if (name.equals("category"))
System.out.println(reader.getElementText());
- - break;
The output of the above would appear (as the data arrives)
like:
Mixed
- Bread
- Monkey
Basically, unlike DOM which reads in all the XML and provides
you with a model you can then pull elements out from, a StAX parser
lets you tell the parser when to parse, it tells you what it found
and you can then decide what to do with that data. It's very good
for using as an XPath stream parser, as you can look for an XPath
match on an XML document hundreds of megabytes in size, without
ever using more than a few kilobytes of memory. Disadvantage of
course is that once you've passed an XML element, you can't go back
unless you saved it somewhere.
My XMLStreamReader is fairly easy to adapt into use as a DOM
parser as well, and it's pretty good at that too, but I try to
avoid DOM like the plague where possible.
If Flex only has DOM available then I would like port my
parser as a mirror image of the Java parser, and hope that any
future Flex StAX parser standard is similar enough to easily mash
my code into at that time.

Similar Messages

  • Xcelsius XML Connection Issue when using a Crystal created XML file

    HI Xcelsius/Crystal Gurus,
    I am running Crystal Reports 2008 version 12.2.9.698 and Xcelsius 2008 5.3.0.0 Build 12,3,0,670,
    I am attempting to create an XML file from a Crystal report which will be consumed by an Xcelsius Dashboard.  Apparently, there is something with the file that Xcelsius does not like.
    I have formatted the report exactly as Xcelsius requires and exporting via text with an xml extension to create an .xml file.  When I add an XML Connection in Xcelsius and add the appropriate names/range, etc...I am able to see the file via the Preview XML button on the Connection, but when I use a component, I am not seeing the data in the component.
    I can 'recreate' the file in NotePad by manually typing in the entries to look exactly like the file created by Crystal and set up a connection in Xcelsius to consume that file and it works beautifully.
    Does anyone have any experience with using Crystal Reports to create an XML file (not using the XML Export, but by exporting as a Text and adding an extension)?
    Is it possible that Crystal is adding hidden characters or something?  I can pull this Crystal created file into an XML editor or MS Word and it is validated as a good XML File.
    Any help is greatly appreciated!

    This article is all about setting up security on the web service. But, I just want to connect to the web service as a client using the proxy and the web service doesn't have any security set on it at this time.
    I am getting a connection timeout, even when I set the syncMaxWaitTime in the domain.xml file on the app server to a higher number (although this doesn't seem to affect the time it takes for the debugger to return).

  • Error in Dashboard using XML connection

    Hi Experts,
    I have developed one Dashboard using XML connection  but getting bellow attached error can any one guide me how to solve it.
    I know that error is related to cross domain.xml please explain the what is cross domain.xml and guide me to solve issue.
    Regards
    Mahantesh(Monty)

    Hello,
    Please check if below notes are relevant:
    https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/sno/ui_entry/entry.htm?param=69765F6D6F64653D3030312669765F7361…
    https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/sno/ui_entry/entry.htm?param=69765F6D6F64653D3030312669765F7361…
    https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/sno/ui_entry/entry.htm?param=69765F6D6F64653D3030312669765F7361…
    https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/sno/ui_entry/entry.htm?param=69765F6D6F64653D3030312669765F7361…

  • Preferences advanced network connection configure button missing

    Checking preferences > advanced > network > connection > configure how Firefox connects to the internet, found that the "settings" button did not appear. Also, the "encryption" tab on the far right was gone.
    Most recent changes were to install addons Certificate Patrol and Perspectives. I reverted to a profile saved before they were installed but that made no difference. The troubleshooting data below is without the two addons.

    Thanks for the quick response. To answer the first question, the window can't be resized, at least on 10.5. Macs are cranky about such things.
    I had been working on isolating the problem since posting the question. It is in my userChrome CSS running under Stylish; so the problem is either the CSS or Stylish or Stylish Custom. In any event not some external thing, which was my main concern. I'm sure that this did not occur with previous combinations of Firefox, userChrome, and the two extensions. The problem may never be fixed, but can be circumvented by just disabling the CSS when needed.
    Sorry to have stirred up things, but it was a troubling phenomenon.

  • XML Connection

    Hi all,
    I'm new on Xcelsius 2008.
    i'm using XML connection and i want my dashboard works dynamically according to database. how can we do that? i don't want to change the XML data anymore, i wanna it update automatically.
    beside that, what's the advantage of using XML data? is it the most common connection?
    thanks
    please help
    Best Regard,
    Hendry

    Asking these kinds of questions in a forum is only acceptible if you cannot find any information about it on the net... if you cannot even do research for yourself, how will you ever succeed as a developer? Research is the first step in every project!
    Your quest begins with the jaybird (= jdbc driver for firebird) faq:
    http://www.firebirdsql.org/index.php?op=devel&sub=jdbc&id=faq#poolingcode
    You may also want to check the documentation of your specific webserver. For example tomcat has pretty decent information about setting up datasources:
    http://tomcat.apache.org/tomcat-5.5-doc/jndi-resources-howto.html
    http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html
    You can expect similar steps in the documentation of other web/application servers.

  • Advanced XML View

    Hey guys,
    I wanna create an advanced XML View:
    This is the code in the JS-View:
    new sap.m.Page("page", {
    title : "Test",
    showNavButton : "true",
    showFooter : "true",
    customHeader : new sap.m.Bar({
         contentLeft : [ new sap.m.Button({
         icon : "sap-icon://home",
         tap : function() { app.back();}
         contentMiddle : [ new sap.m.Label("title", { text : "{CategoryName}"
    I started like this:
    <core:View
      controllerName="sap.ui.demo.myFiori.MeineRouteApp.controller.Master"
      xmlns="sap.m"
      xmlns:core="sap.ui.core" >
      <Page
      title="Test"
      showNavButton = "true"
      showFooter = "true"
      customHeader = <Bar>
      </Bar>
      >
    And thats the point I am struggling. How can I create the custumHeader?
    Thanks + regards
    Chris

    Thanks Shilpa, that worked perfect! I am aware now of the difference between how to handle a aggregation and how to handle properties.
    But I got a new problem while creating a new XML-View:
    JavaScript view:
    var oHtml = new sap.ui.core.HTML({
    id: "map_canvas",
    content: '<div id="map_canvas" style="float:left;min-width:500px;width:70%;min-height:600px;height:100%;"></div>'
    XML-View:
    <core:FragmentDefinition
      xmlns="sap.m"
      xmlns:core="sap.ui.core">
      <core:HTML
      id="map_canvas"
      content= " '<div id="map_canvas" style="float:left;min-width:500px;width:70%;min-height:600px;height:100%;"></div>' ">
      </core:HTML>
    </core:FragmentDefinition>
    This time I have the property content, so I mentioned it as a attribute. But I get the error:
    "The value of attribute "content" associated with an element type "core:HTML" must not contain the '<' character."
    It might an error of the single and double quotation marks, but I tested every combination.
    Any further ideas?
    Thanks
    Chris

  • XML connection is giving Blank output

    Hi ,
    I am trying to connect my dashboard with XML data
    but it is giving total blank dashboard.
    I am unable to find out reason.
    Can some one help.
    my XML file is
    <data>
    <variable name="Test">
        <row>
            <EmpType>ALL</EmpType>
            <S_PL>0.124</S_PL>
        </row>
        <row>
            <EmpType>ALL</EmpType>
            <S_PL>0.151</S_PL>
        </row>
        <row>
            <EmpType>ALL</EmpType>
            <S_PL>0.018</S_PL>
        </row>
        <row>
            <EmpType>ALL</EmpType>
            <S_PL>0.060</S_PL>
        </row>
        <row>
            <EmpType>ALL</EmpType>
            <S_PL>0.113</S_PL>
        </row>
    </variable>   
    </data>

    I found a solution...!
    I used
    <data>
    <variable>
    <column>
    </column>
    <column>
    </column>
    <column>
    </column>
    <column>
    </column>
    <column>
    </column>
    </variable>
    </data>

  • Callconnector advanced client connects to server only randomly

    Hi,
    I just installed scc server and 20 call connector advanced clients at a customer site. Everything worked on the installation.
    Installed all the licenses ok.
    I just received the following email from the client:
    "A number of staff including myself are experiencing difficulty logging on to the  Cisco Smart Call Connect system each morning.  When we try to log on we get a  message saying network error as the systems goes through the motions of trying  to connect.  After the systems has made 5 attempts to log on a message box pops  up saying unable to connect to server.  We are trying all the usual solutions to  correct the problem ie.  Restart and shut down etc.  This is successful only  sometimes and often we have to try several times.  One of our ladies in the  Accounts Department, Sally Pan has tried 4 or 5 times this morning to log on and  is still unable to connect.  In my case today after the  4th attempt  I was able to connect."
    The call connector server is always on and is installed on a win7 32bit 4gb ram system with static ip.
    I can not see why would this happen.
    How should I proceed troubleshooting this issue?
    Another question: The callconnector advanced clients installations are on PCs that get ip address via dhcp. I know I had to input the ip address of the pc when I installed the advanced client. Does this have anything to do with it (i.e. does advanced client need to be installed to a pc with statically assigned ip address, or it does not matter)?

    Anthony,
    It helps if you state what product and what version you are using. It appears as though
    you are using Java System Message Queue. If so you need to set the
    imqBrokerHostName attribute on the ConnectionFactory (imqAddressList is also
    supported on later versions). See the Java Client Developer's Guide:
    http://docs.sun.com/app/docs/coll/MessageQueue_2005Q1
    A quick way is to pass the property on the command line:
    java -DimqBrokerHostName=yourserver . . .

  • Advanced XML filtering

    Hi,
    In short: How do I filter an XMLList in ActionScript rather
    than E4X, i.e. I am looking for a
    replacement of myXmlList.(@attrib == someValue) with
    myXmlList.filter(someFilterFunction)
    which has the same behaviour (i.e. the result does not
    contain copies).
    The long story: I have an application that operates on an XML
    structure. It uses the E4X filter
    mechanism to generate a number of filtered views to display,
    using
    filteredList:XMLList = myXmlList.(@attrib == someValue)
    I now hit the situation that the filter functionality is more
    complicated (I basically need access to the whole object and
    perform a few calculations to decide whether it's in the list).
    First quesiton: Is there an easy way to do this straight on the
    XMLList?
    I tried something like this
    var filteredList:XMLListCollection = new
    XMLListCollection(new XMLList());
    for each (var n:XML in myXmlList) {
    if (logic to decide whether n is in here) {
    filteredList.addItem(n); (*** see below)
    filteredList = XMLList(filteredList);
    But this seems add each item again to myXmlList (so they are
    all in there twice now) - no what I want.
    Second question: What exactly is the addItem call doing? Why
    is it also adding to the XMLList n is from?
    I tried
    filteredList.addItem(n.copy());
    which does not add the items to myXmlList but it makes a copy
    which is not what I want (I am updating the
    XML and don't want to have copies around). This whole
    approach may be complete nosense, I am just
    starting to get my head around the XML processing.
    Any help or pointers in the right direction are much
    appreciated.
    Thanks,
    Robert

    You are so close. You are saying the right words but not
    conjuring the right spell. You do want a filtering function - you
    want a filterFunction:
    var bigList:XMLListCollection = new XMLListCollection(
    originaldata );
    bigList.filterFunction = uniqueFilter;
    private function uniqueFilter( item:Object ) : Boolean {
    var test:XML = XML(item);
    if( /* some test here */ ) return true; else return false;
    bigList.refresh();
    If you look at the documentation for XMLListCollection and
    then examine the inherited properties and methods, you'll see the
    filterFunction property and the refresh method.
    I just wrote an article on my blog about filtering
    collections. Although I used ArrayCollection, it should similarly
    for XMLListCollection.
    Filtering
    Collections - weblogs.macromedia.com/pent
    Basically the filterFunction is given an element of the
    Collection and must return true if the element should appear in the
    collection's view or false if should not. This does not eliminate
    the item from the Collection, just from the view of the Collection.
    This way you can change the criteria and refresh() the collection.
    If you have a DataGrid's dataProvider bound to the Collection
    you'll see it just when the refresh() is done.

  • JDBC connect with "XML Connections export"

    I would like to use the existing connection configuration for a statistik over all connections. Is there any way to use the encrypted password in this file for JDBC connection? I didn't get a hint on that. How does sqldeveloper connect - could I use a class from it?
    Regards Matthias

    Writing something outside the tool would not be easy. If you write an extension, you can get the connection just like the Fourth Elephant guys have done.
    -kris

  • How to set up Proxy settings manually in Tools Options Advanced Network connection

    i want to setup a Proxy on my desktop for secure browsing.. please tell me which IP address and which ports i can use to set the proxy setting manually.

    See Tor: https://www.torproject.org/index.html.en

  • Upon startup Firefox says "Proxy is refusing connections." When I select "Auto-Detect Proxy" from Advanced settings and solve problem, changes are not saved and upon next startup I must select again...!

    Firefox 4 was working fine. Then one day, when I started up Firefox, it says "Proxy is refusing connections." I solved this by selecting "Auto-Detect Proxy" from Advanced network settings, but my changes are not saved and upon every start-up I must select it again! (I even completely removed my webroot antivirus protection, as it as hindering many proxy related programs, but this seems to not be the source of the problem)

    You can find the connection settings in Tools > Options > Advanced : Network : Connection
    If you do not need to use a proxy to connect to internet then select "No Proxy"
    See "Firefox connection settings":
    * https://support.mozilla.com/kb/Firefox+cannot+load+websites+but+other+programs+can
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes
    See also:
    *http://kb.mozillazine.org/Preferences_not_saved

  • XML Data Connection : Relative path

    Hi,
    I'm new to Xcelsius
    I have added an XML Data Connection with a static path pointing to a xml file in my C:/
    Now I would like to point the path to a relative path like ./ where the XML file be place in the same place as the dashbord.
    How can I do this?
    ~SaNv...

    I have inserted a text field to get the xml file input path and inserted that  on a cell.
    Then made tha XML connection to read this cell for loading the XML file. This works fine in the xcelsius preview, however when I exported this as an swf/pdf i get the below error in accessing the XML.
    To access external data, this file must be trusted.
    For a PDF file, in Adobe Reader, click Edit > Preferences > Security (Enhanced).
    For any other file type:
    **Do NOT click OK until you have read all the following steps.**
    1. Click OK to close this message and open the Adobe Settings Manager in a web browser.
    2. Click Global Security Settings Panel.
    3. On the Global Security Settings Panel:
       a). In the u201CAlways trust files in these locationsu201D drop-down, select Add location.
       b). Click Browse for files.
       c). Do one of the following:
           - For a PowerPoint file, navigate to the PowerPoint.exe location.
           - For all other file types, navigate to the location of this file.
       d). Click Open.
    4. Close the Adobe Settings Manager. Re-open this file.
    If the problem persists, contact the file creator or your system administrator.
    Error: Error #2148
    Connection Type: XML Data
    File URL: file:///C:/Documents%20and%20Settings/santhosh/Desktop/final.swf
    External Data URL: C:\Documents and Settings\santhosh\Desktop\test.xml
    I have also added the XML file in the Global secuirity testing
    ~SaNv...

  • How to Delete Smartview In Excel Advanced Option Shared Connections URLs

    I searched every forum and every blog for an answer to what I believe is a very simple fix but just havn't find an answer to.
    How do I clear all the old stored Shared Connection URL's in Excel -> Smartview Option -> Advanced -> Shared Connections Drop-Box in Version 11.1.2 ?
    Thank you in advance for your time and reply.

    Please check the image from this link
    http://www.google.com/imgres?q=smartview+advance+option+in+excel&num=10&hl=en&biw=1120&bih=694&tbm=isch&tbnid=coGQG8eoKxEPIM:&imgrefurl=http://appliedbi.blogspot.com/2011/09/smart-view-11121-and-intricacies.html&docid=vcWxoZD3eiXntM&imgurl=http://3.bp.blogspot.com/-LYnum3mQIis/Tmt2HWLX8GI/AAAAAAAACA4/S1kLXtZluQI/s1600/LogFile.png&w=507&h=272&ei=5X5gUKO0Ism2igKC1oDwCQ&zoom=1&iact=hc&vpx=771&vpy=213&dur=1230&hovh=164&hovw=307&tx=246&ty=85&sig=118263283618459905455&page=1&tbnh=114&tbnw=212&start=0&ndsp=15&ved=1t:429,r:4,s:0,i:87
    It is from the top url update connection link in the photo is what I am trying to clear out.
    Thank you

  • 1.5.3 - Default connection xml file path??  + Error + hanging.

    If anyone can tell me how to change (and save) the default path that SQL Dev. uses to access the correct .xml connections file - I'd really like to know!!
    Also - why does version 1.5.3 HANG WHEN EXITING - generating errors in the trace file :
         ORA-00600: internal error code, arguments: [18110], [0x65904038], [2], [46], [], [], [], [] ??
    We are talking about hanging to the extent of having to killing it with task manager at the end of any SQL Developer session over an hour or so.
    In my view this version - 1.5.3 - is simply * RUBBISH * !!
    Install a previous version, (1.2.1 :) ) we have, and you'll do more work without the frustration of 'things' hanging all the time.

    Please note that if you have an Oracle Database Support license, then you can log all your issues with Metalink and we can get to them and address them. This forum is full of users who regular respond and are very helpful to other posters with queries and problems. I see that this is your first post on the forum and recommend you take a different approach.
    If you can tell us what you're doing before you exit, and provide more detail about why the product is rubbish, we'd be able to respond and even address some of the issues.
    If you want to share connections with other users, there are export & import menu options that allow you to export the xml to a file that you can place on a server and other users can import this. You don't say why you need to change the path, so I can only guess at the reason.
    With no further detail in your posting we can't help you.
    Sue

Maybe you are looking for