xml

Xquery get value from attribute

Hi, I have some xml and need to extract values using sql <?xml version="1.0" ?> <fields> <field name="fld_AccomAttic"> <value>0</value> </field> <field name="fld_AccomBathroom"> <value>1</value> </field> </fields> </xml> I need to get column name fld_AccomAttic Value 1 The xml is held in a sql server 2005 db I ...

How to Construct xml in php with Special Characters?

My user enters message with special characters as follows: this is a test of &amp;&amp;, &amp;&amp;, % as well as '' &quot;&quot;, &quot; instead of this is a test of &, &&, % as well as '' "", " I need to construct XML as follows: <?xml version='1.0' encoding='iso-8859-1'?> <success> <message> this is a test of &amp;, &amp;&amp;, % ...

can't get two connecting strings from XML (web.config)

XmlTextReader reader = new XmlTextReader(Window1.cfg.FSAddress); bool[] startreading = {false , false}; while (reader.Read()) { switch (reader.NodeType) { case XmlNodeType.Element: // Узел является элементом. if ...

How can I create the XML::Simple data structure using a Perl XML SAX parser?

Summary: I am looking a fast XML parser (most likely a wrapper around some standard SAX parser) which will produce per-record data structure 100% identical to those produced by XML::Simple. Details: We have a large code infrastructure which depends on processing records one-by-one and expects the record to be a data structure in a form...

Generating XML Documents from XML Schemas in C++

Is there any easy way to create at least a template XML file using XML Schema? My main interest is bounded by C++, but discussions of other programming languages are also welcome.By the way I also use QT framework. ...

dataSet.writeXml does not write an empty tag if the field was empty C#

Hi there, I want to create a XML of my DataSet using the .writeXml-function. If an entry in my DataSet was null, i would like to have an empty tag instead of a missing tag: example how it should look like if John had no age: <MyDataSet> <ID>8613458</ID> <AW_ID>37534778</AW_ID> <NAME>Peter</NAME> <AGE>22</AGE> </MyD...

About conversion of simplexmlobject to array.

Hi guys, I tried the way you told but really messing up on some points. I am getting array fields but when it comes to children nodes, i go off the track. here giving single user's simplexml object only : SimpleXMLElement Object ( [users] => SimpleXMLElement Object ( [@attributes] => Array ( [type] => array ) [user] => Array ( [0] =...

Variable increment in XSLT

hi, i've an xml file like <node> <elm val="data1"/> <elm val="data2"/> <elm val="data3"/> <elm val="data4"/> <elm val="data5"/> <elm val="data6"/> <elm val="data7"/> </node> i need to write an xslt for this xml file to display in a table fomat like 1 dat1 2 dat2 3 dat3 4 dat4 5 dat5 6 dat6 7 dat7 please help m...

php code to return xml

hi there i have a question and need help on this from you guys . I have a database created for a game called gamesleaderboard and the fields are id, player_name, score, leveltime. and my task is after getting the score, i have to insert it to a database and sort the dbase accordingly. after sorting, the code will return an xml in the f...

Preserve certain html tags during XSLT

I have looked up solutions on stackflow, but none of them seem to work for me. Here is my question. Lets say I have the following text : Source: <greatgrandparent> <grandparent> <parent> <sibling> Hey, im the sibling . </sibling> <description> $300$ <br/> $250 <br/> $200! <br/> <p> Y...

phantom error "error parsing XML: unbound prefix"

The error "error parsing XML: unbound prefix" shows up on my main layout: main.xml when I first open Eclipse. To make the error go away, all I have to do is make a modification to the file, then undo it, then hit save (have to make a change in order to be able to save file and thus trigger the new syntax check). My environment is: F...

Remove all nodes from xml excluding specific nodes using XSLT

Hi, I have a bunch of xml files with a varying amount of data nodes in them and I want to change the files using XSLT to include only specific nodes. Example: <?xml version="1.0" encoding="UTF-8"?> <SomeName> <identifier> <UID> 1234 </UID> </identifier> <MainNode1> <SubNode1> <Subnode1a>DATA1a0</Subnode1a> ...

Ajax to read updated values from XML

I am creating file upload progress bar. I have a CGI script which copies the data, and here I increment the progress bar value by ONE after certain iterations. I am storing the incremented value in XML file (I also tried using plain text file). On the other side I have ajax reading incremented value from xml and depending on that it incr...

Iterating through all nodes in XML file

I want to iterate through all nodes in an XML file and print their names. What is the best way to do this? I am using .NET 2.0. ...

Parse large XML file w/ script or use BioPython API ?

Hey guys this is my first question on here. I'm trying to make a local copy of the UniprotKB in SQL. The UniprotKB is 2.1GB, and it comes in XML and a special text format used by SwissProt Here are my options: 1) Use a SAX parser (XML) - I chose Ruby, and Nokogiri. I started writing the parser, but my initial reaction: how would I map...

How could I do something like this in a XML schema?

Hi I want to mass create some users and I want to set the users timezone automatically. However I am using timezones generated by this Dictionary<string, TimeZoneInfo> storeZoneName = TimeZoneInfo.GetSystemTimeZones().ToDictionary(z => z.DisplayName); So I need the names to be exactly like the ones this list returns. So can I put li...

SQL2k8 T-SQL: Output into XML file

I have two tables Table Name: Graph UID1 UID2 ----------- 12 23 12 32 41 51 32 41 Table Name: Profiles NodeID UID Name ----------------- 1 12 Robs 2 23 Jones 3 32 Lim 4 41 Teo 5 51 Zacks I want to get an xml file like this: <graph directed="0"> <node id="1"> <att nam...

Is it possible to color-code and format an XML document using XSLT?

Has this ever been done before? Is it possible to write an XSLT that will turn an XML document into color-coded, formatted, HTML? ...

If I use a menu.xml to create an Options menu, can I change the standard menu attributes like text size, etc?

If I use a menu.xml to create an Options menu, can I change the standard menu button attributes like text size, etc inside of that menu.xml? I would like to make the text in each button larger, bold and different colors. Thank you for reading my question ...

Create an XML file in iPhone app

Hi, I have a big problem. My program must save a Xml file with 3 float value (x, y, z of accelerometer) and a NSString value (name). How can I do? Thanks so much ...