xml

Deserializing "old" xml into new class instance

I've had a class which looked like public class MyClass { public string EmployerName; public string EmployerSurname; public string EmploeeName; public string EmploeeSurname; } I've refactored the code above to this: public class MyClass { public MyClass() { Employer = new PersonInfo(); Emploee ...

html tags inside xml tags - how access in javascript?

I'm passing my xml data through php where all xml nodes are contains html tags <bccfalna-ad> <ad-id>99</ad-id> <ad-title>New Ad</ad-title> <ad-code><u><b>C Language</b></u></ad-code> when i access this code in javascript, its easily access ad-id and ad-title but it always print null for ad-code node var edit_ad_id = xmlDoc.getElement...

Python lxml and stdin

I have a xml file, book.xml (http://msdn.microsoft.com/en-us/library/ms762271(VS.85).aspx) I would like to cat books.xml and get all book ids and genres for the book id. Similar to cat books.xml | python reader.py Any tips or help would be appreciated. Thanks. ...

Any other xml data mapping solution for DELPHI ?

Hi folks, i´m looking for any other solution to XmlDataBinding in Delphi. The native delphi wizard isn´t working for me, i have huge complex schemas with duplicate elements and other things who lead to strange errors that aren´t easy to fix manually. Any ideias? Thanks in advance. ...

How do i pass a full directory of XML files into XSLT

The following XSLT is transforming file1.xml and file2.xml. How do i replace those 2 files with a full folder listing of all the XML files? I am using VBA in Microsoft Access, and this stylesheet solves the problem of merging multiple files (credit to Alejandro) without dropping any newer fields as was the case during XML import. It ...

What is the difference between escapeXml and escapeHtml?

I would like to escape characters in JSP pages. Which is more suitable, escapeXml or escapeHtml? ...

Best way to read, modify, and write XML

My plan is to read in an XML document using my C# program, search for particular entries which I'd like to change, and then write out the modified document. However, I've become unstuck because it's hard to differentiate between elements, whether they start or end using XmlTextReader which I'm using to read in the file. I could do with...

Create HTML form from XML

I have a number of different xml files that I need to edit from an html form. I want the form to be generated dynamically (the files could any valid xml structure) and I want to save the modified xml content back to the database in the same structure. I've seen a few examples of using XSLT when you know the structure of the xml, but in ...

Problems understanding Android XML layout_weight

Hi stackies, I really tried to, but I can't understand how Android interprets layout_weight setting... What I'm trying to archieve is a header on top with a fixed height an input area at the bottom containing an EditText and a Button a content part in the middle that's taking all what's left of space When typing I'd like to grow...

avoid error when xpath does not find namespace in xml

Hello everyone, Could someone tell me how to avoid these errors? Testing for existance of namespace? It starts when I want to add geo information to an array I thought it was enough to do this. (from the picasa api feed) foreach($feed->xpath('//gml:pos') as $pos) { $feed_arr['geo'][$i]['pos'] = (string)$pos[0]; $i++; } <b>Warning</...

How do you create a dynamic amount of objects? Design Pattern help

Hey Stack Overflow'ers, I'm stuck in a C# program I'm developing, and I think it's because I am taking the wrong approach. You see, I have these settings in an XML file, which are read at runtime. For each setting, I want to create a new object that does stuff. I think I can do that, but the problem is, how do I reference those obj...

How to get the next and previous node

I am trying to get both the next and previous elements of the current element Here is the xml <template id="9"> <tabs> <tab> <name>test</name> <description /> </tab> <tab> <name>test3</name> <description /> </tab> <tab> <name>test7</name> <description /> </tab> </tabs> <...

How to display xml data in OWC 10 component in ASP.net?

Hi We are using Office Web component V10.0 in ASP.NET 3.5 website. The rquiremetn is to display xml data in OWC Pivot table component. How can I acheive that? Thanks ...

How to display the image inside the android widget background?

I have a widget layout xml which sets the src to the delivered android widget 4x1 frame image.Here is the widget layout code. <?xml version="1.0" encoding="utf-8" ?> <AbsoluteLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/tuwidget" android:layout_width="fill_parent" android:layout_height="fill_p...

Is there a good tiny XML parser for an embedded C project?

I'm after a very tiny XML parser for an embedded project. It needs to compile down to 10-15k, doesn't need to validate, and needs to be simple and portable. ...

Android: Error inflating class

Hello, I'm new to Android development and I've been having an issue that I haven't been able to fix. I'm mostly using code from examples provided in the SDK so I'm not sure what's happening here. I'm simply trying to create a custom view GhostSurfaceCameraView that extends SurfaceView. Here's my class definition file GhostSurfaceCameraVi...

Extracting info. from XML into Cocoa

I am trying to parse an XML to extract values of certain variables. Here's an example: <?xml version='1.0'?> <Main xmlns='http://www.abc.uk' version='1.0' name='full'> <child1 version='2.0'> <value1> xyz </value1> <userinfo> <name> joe </name> <pass> joepass </pass> </userinfo> </child1> </Root> Ques...

Working with XML in JavaFX 1.2

Hi I'm trying to develop a small personal application for JavaFX 1.2 working in a mobile and I can't find the way to open a locally stored XML. Any ideas? ...

What PHP code will help me parse html data in an xml form?

FalseAWS.MechanicalTurk.XMLParseErrorThere was an error parsing the XML question or answer data in your request. Please make sure the data is well-formed and validates against the appropriate schema. (1284779956270)Array00 I'm trying to send entire emails to mechanical turk, and I am using the mtturk.lib.php library to send this. I tr...

Xml Parsing Error

Hello All! I am getting this error while trying to Parse the Xml response from the Web Service by SAX Parser in Android. ERROR in LogCat :- " Response =====> org.xml.sax.InputSource@43b8e230 " I got to know that I need to convert the response in String may be by toString() Method, but the problem is I don't know how to do that as I ...