xml

Flex, xml and E4x

Hi I have a basic question. I am loading an XML file using the URLLoader and putting it into an XML variable. My question is, can i leverage E4x to go through this xml data. I tried doing for each (var grid in xmlData.grid){ output.text=grid.name; } But it says that variable 'grid' has no type declaration. This ...

How do I fill a ListView (in Android) with XML or JSON data?

I read a tutorial, and it uses SQLlite and "SimpleCursorAdapter" to fill the list with items. This is the code the tutorial taught me. private void fillData() { // Get all of the notes from the database and create the item list Cursor c = mDbHelper.fetchAllNotes(); startManagingCursor(c); String[] from = new...

How to add a System.Xml.XmlDocument type to applications state

I am using Asp.net 3.5 and C# I have to add an XmlDocument to my application state so that everytime my application doesnt access the XML file on my filesystem, I will add this at the Application_Start() function in Global.asax.cs I am adding this to system state as : protected void Application_Start(Object sender, EventArgs e) { ...

How to generate XML file using Ruby and Builder::XMLMarkup templates?

As you all know, with Rails it is possible to use Builder::XMLMarkup templates to provide an http reponse in XML format instead of HTML (with the respond_to command). My problem is that I would like to use the Builder::XMLMarkup templating system not with Rails but with Ruby only (i.e. a standalone program that generates/outputs an XML f...

xls-fo fop 0.94 Using the keep-together with wrap-option="wrap"

In xls-fo fop 0.94 Using the keep-together along with with wrap-option="wrap" ignores the wrap option ? Is there a way to make them both work? <fo:table-row border="1pt solid black" keep-together="always"> <fo:table-cell> <fo:block overflow="scroll" wrap-option="wrap"> This is a long text It is desired t...

Are there any XML Editors with FTP and file-tree browsing combined?

Are there any (free preferably) XML Editors combined with FTP and file-tree browsing Project wide find+Replace I.e A bit like what Dreamweaver MX is but with fancier XML capabilities /XSLT /XSD Perhaps even DW does this...im still on an older version. I'd like to keep a smooth flow between find-edit-view-upload any ideas? B...

How do I pretty print an XSLT result document with removed source elements?

I have a source XHTML document with elements in multiple namespaces that I am transforming into an HTML document (obviously with no namespaces). In my XSL templates I only match elements in the XHTML namespace to remove non-HTML-compatible elements from the result tree. However, in the output, while those elements are gone, the whitespac...

How to retrieve attributes of xml tag in Python?

hello I'm looking for a way to add attributes to xml tags in python. Or to create a new tag with a new attributes for example, I have the following xml file: <types name='character' shortName='chrs'> .... ... </types> and i want to add an attribute to make it look like this: <types name='character' shortName='chrs' fullName='MayaCh...

How do I read and write XML from Perl?

I need to reading from XML and write to XML through Perl. I don't know which packages to be installed. I am using Fedora Core 6. Please help me out to resolve this. ...

XML format for personal information?

Is there an universally acknowledged format for exchange information about 'a person'? I mean stuff like first name, last name, address, contact_address + some custom additional information. Is it better to define an ad-hoc schema or to use some ready made namespace. Thanks! ...

vb6 xml string to textbox

Can anybody help me to create function that will accept for parameter xml string and return a formatted string as response that after can Example: <cars> <ford> <model>fiesta</model> <model>focus</model> </ford> <renault> <model>twingo</model> <model>clio</model> </renault> </cars...

How to get DataSet.ReadXml to parse a DateTime attribute as a typed DateTime

I have an XML string which contains Dates formatted "dd/MM/yyyy hh:mm:ss". I'm loading this XML into a dataset using DataSet.ReadXml(). How can I ensure that this Date is stored in the DataSet as a typed DateTime so that I can Sort, Format and RowFilter on it accordingly. My test harness is as below: ASPX Page: <%@ Page Language="C#...

Escaping XSLT regular expression

I am having some trouble escaping a validation expression within a regular expression validator in XSLT. <asp:RegularExpressionValidator ID="regValEmail" ErrorMessage="..." runat="server" ValidationGroup="Store" ValidationExpression="[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\....

Customize JAXB 2.0 generated method names from a xsd:choice element

Hello everybody, I'm trying to figure out how to customize a method name that's being generated by JAXB 2.1.12. I have an epic XML schema (that is not in my control), and it contains a group with a choice element that contains about 200 other elements. So when I'm generating the JAXB classes, the get() method that is created is rather un...

ast of c source code in xml?

i'm looking for a software which converts a c source code program to a xml-based ast representation? some sort of markup language. example: [function name="set_foo"] [parameters] [parameter name="bar" type="string" /] [/parameters] [return> ...

XML vs Access DB

I have a lightweight app that will use some data. I am trying to decide if I should use XML based or just include a mdb file. ...

Checking an XML schema for correctness using tools

I have a schema that I would like to validate (note: not a document, but the schema itself) for correctness and catching any silly errors. The schema references other schemas, which are all together in the same directory. We can't host the schema publicly just yet. Is there a command-line tool or script for any recent Windows or Unix OS...

Framework for Delphi similar to Castor

Can anyone suggest: a framework for Delphi for work with XML / XSD like the one that makes Castor for JAVA? Borland XML Data Binding does not offer - he is not flexible. ...

php->xml using DOM, prints all on the same line, server config or intended?

I'm using php DOM to build an XML file of data, it works fine but it all outputs on one line, like so: <property><something><somethingelse>dfs</somethingelse></something></property> However in all examples I've found it's outputting properly, like so: <property> <something> <somethingelse> dfs </something...

how to get specific nodes in xml file with python

hello im searching for a way to get a specific tags .. from a very big xml document with python dom built in module for example : <AssetType longname="characters" shortname="chr" shortnames="chrs"> <type> pub </type> <type> geo </type> <type> rig </type> </AssetType> <AssetType longname="camera" shortname="ca...