xml

Use LINQ to read all nodes from XML

I have a XML file, like this: <?xml version="1.0" encoding="utf-8" ?> <ROOT> <NAME> ItemName </NAME> <LIST> <ITEM> ListItem1 </ITEM> <ITEM> ListItem2 </ITEM> <ITEM> ListItem3 </ITEM> </LIST> </ROOT> How can I use LINQ to get all the ITEM...

How to encode CR LF in DataSet.WriteXML?

I am using DataSet.ReadXML and DataSet.WriteXML to read and update an XML file. In some places I have a text column that may contain carriage return, linefeed (&#13;&#10;) When I put &#13;&#10; in the input file, ReadXML works fine and I get \r\l in the column's value. However when I update with DataSet.WriteXML, the output file appea...

Problem in reading Xml file

Hello I am making xml file for rssfeed. but rssfeed reader is not reading some special character.I have following data: Machinery Vibration Analysis Training Course (with optional Mobius Institute certification exam - ISO 18436.2 Category II Vibration Analyst) In XML file it looks like Machinery Vibration Analysis Training Course (w...

Best way to write DataTables from a Web Service into XML?

I'm trying to refactor some slow running code which writes XML using nested loops of several datatables. I read that using linq to write the xml would be faster. I'm not well versed in linq, so I was hoping to get some help here. Some things I need to mention is that the current architecture uses a webservice which returns data to us in...

How do I extract all HTML tags from a webpage into an array?

I need to extract all HTML tags from a webpage into an array without the data inside the tags. It would look something like... I'm using PHP Array { html => Array { head => Array { title, ...

How to handle minoccurs="0" when calling web services?

I have a web service I am trying to call using a mainframe integration product (DataDirect Shadow z/Services), but my question is more of a general one. I want to know how an element defined as minOccurs="0" is typically handled. The operation on the 3rd party service I am calling has a complexType element where all of the elements wit...

How can I send XML data format from browser to server using jQuery?

Hi, I would like to know if there is a way in jQuery to send data to server from a browser in XML format? Thanks, Sana. ...

Android User Interface xml question

<LinearLayout android:layout_width="fill_parent" android:orientation="horizontal" android:layout_height="wrap_content"> <LinearLayout android:id="@+id/LinearLayout01" android:layout_width="wrap_content" android:orientation="horizontal" android:gravity="center_horizontal" ...

change value of element by xquery

Hi I have structure <category> <catid>1</catid> <cattext> sport </cattext> </category> I want change text of element <cattext> into another like "art" instead of sport by using xquery ...

Clipboard.GetData("XML Spreadsheet") return Null

I have to read clipboard from a .net application using c#. I use "Xml Spreadsheet" format to read it to have informations like type of columns. My problem is that sometimes the GetData() return null. Stream stream = Clipboard.GetData("XML Spreadsheet") as Stream; I read clipboard from the main thread. I suppose this is a memory proble...

Validating XML with DTD fails to import entity using lxml

I have a tool producing NewsML type XML files and I want to validate them after producing the files. I'm receiving an error: Attempt to load network entity http://www.w3.org/TR/ruby/xhtml-ruby-1.mod The python call is: parser = etree.XMLParser(load_dtd=True, dtd_validation=True) treeObject = etree.parse(f, parser) First I'm not sure...

SAXException when parsing XML file with XSD schema

I have the following XSD file: <xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema' targetNamespace='http://www.wvf.com/schemas' xmlns='http://www.wvf.com/schemas' xmlns:acmewvf='http://www.wvf.com/schemas'&gt; <xs:element name='loft'> </xs:element> </xs:schema> and the following XML file: <?xml ...

storefront menu tab

i am working on asp.net storefront(not mvc) but the one from aspdotnetstorefront.com I try to add menu items on topmenu but i am seeing (!menu.About!)" as result. How to do this? ...

Perl simulating Net::DBI fetchall_arrayref()

I have to simulate an array as if it was returned from Net::DBI fetchall_arrayref function. Lets say that the SQL query is something like "SELECT data1,data2,data3 from table1 " I have an XML file as <type1> <data1>a</data1> <data2>b</data2> <data3>c</data3> </type1> <type1> <data1>da</data1> <data2>db</data2> <data3>dc<...

Xquery finding duplciate IDs

I have an XML database which contains elements which have an id. These are all unique. They also have a secondary identifier which links them to a similar object in another database. These are not all unique. Is there an XQuery which would let me identify all the non-unique IDs? I can count how many there are using distinct-values(), bu...

Nokogiri::XML not creating xml document

Alright, so the ultimate goal here is to parse the data inside of an xml response. The response comes in the format of a ruby string. The problem is that I'm getting an error when creating the xml file from that string (I know for a fact that response.body.to_s is a valid string of xml: <?xml version="1.0" encoding="UTF-8"?> <Response...

Change XML in Ipad TopPaid project from mac

Hi, I am trying to modify the TopPaid project from Apple: http://developer.apple.com/library/ios/#samplecode/TopPaid/Introduction/Intro.html I want to put buttons in the Ipad DetailViewController to change the XML, parse again, and reload the table with the new info. What is the correct way of doing this? ...

How can I use xpath querying using R's XML library?

The xml file has this snippet: <?xml version="1.0"?> <PC-AssayContainer xmlns="http://www.ncbi.nlm.nih.gov" xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:schemaLocation="http://www.ncbi.nlm.nih.gov ftp://ftp.ncbi.nlm.nih.gov/pubchem/specifications/pubchem.xsd" > .... <PC-AnnotatedXRef> <PC-AnnotatedXRef_x...

How to I change the xslt applied to XML document in VS 2008 IDE?

I have an XML document and made an XSLT to output is as HTML and viewed the output in the IDE. Now I want to create an XSLT to output as text file, but the 'Show XSLT Output' only shows me the HTML. How do I switch it to the text output XSLT? I even put in the line: <?xml-stylesheet type="text/xsl" href="NotaryExport.xslt" ?> ...

Rails 3 XML Builder / Twilio API

This Twilio API Sample code isn't working in Rails 3: #voice_controller.rb def reminder @postto = BASE_URL + '/directions' respond_to do |format| format.xml { @postto } end end #reminder.xml.builder xml.instruct! xml.Response do xml.Gather(:action => @postto, :numDigits => 1) do xml.Say "Hello this is a cal...