xml

How to get the content of a RichTextBox?

I would like to get the content of a RichTextBox as a string wich contains the XAML. I seen some post wich show differents solutions with another class for parsing the xaml and transforms it into a stringbuilder. But, my goal is to have the XAML directly generated. Thanks ...

Looking for a DTD diff tool / is a given DTD a subset of another

I need to verify that a "simplified" DTD is really a subset of a larger DTD, i.e. that documents that are valid according to the "simplified" DTD will also always be valid according to the larger (or "master") DTD. The simplified DTD is being written now -- it's derived from the master DTD (were it the other way around, one could simply...

Flash actionscript 2.0 XML parsing works on some nodes, not others

Hi all. I'm working on a simple carousel. My problem appears when trying to insert node values as text in my tooltip sub-elements. Here's my xml: <promotions> <promotion> <visuel>/papyrus/8a8b8d2e26fa35b60126faf90a4d002f-20100223141718.gif</visuel> <remise>55</remise> <libelle>produi...

XML Parser in PHP

I am using php 5.3 but when i try read an xml using xmlparser which shows the error Fatal error: Class 'XMLParser' not found .Please help me to solve this.. ...

Loading XHTML schemas to XmlSchemaSet

Hello, I'm trying to load the XHTML schemas from the W3C site (xhtml - transitional, strict & frameset) which I'm having to put into to an XmlSchemaSet. This is then used by a third party product in our application to show intelisense and validation. However when I try and "Compile" this XmlSchema set I get the following message: Th...

Using FileOutputStreams and Jena Models in Java Servlets within an Eclipse Web Project

Hi, I have recently created a web project in Java using eclipse. I have a servlet which includes a timer task. This timer tasks calls the "writeList" method of an XML Writing class that I have created. This all works fine, and I have verified that it runs every minute using System.out. When I run my XML Writing class from within eclips...

Python XML to dictionary to iterate over items

I have the following XML example <?xml version="1.0"?> <test> <items> <item>item 1</item> <item>item 2</item> </items> </test> I need to iterate over each tag in a for loop in python. If tried many things but I just can't get it.. thanks for the help ...

How can I load this XML data into Xcode ?

Ok, so I've finally decided on how to load my data I'm going to go with loading my book data as an XML file. The problem is that I'm not too sure on where to start, I've heard terms such 'parsing' but dont know how exactly it fits in. I have added the code below if someone could give me a start in the right direction I would really app...

Regex: keep everything in <profession></profession> tags

I have a large XML, looking like this: <gender>M</gender> <last-name>*</last-name> <profession>2165dda2-dc59-41af-acb5-06d8914c4841</profession> <first-name>*</first-name> <mail-confirmation>1</mail-confirmation> <fax-confirmation>1</fax-confirmation> I only want to keep the tags. I found a way to search IN the tag, like this: <prof...

converting multiple tags in xml to attributes of a single tag

I have an XML file which is in this form: <row> <field name="id">18</field> <field name="lat">40.7560540000</field> <field name="lng">-73.9869510000</field> <field name="body">Students arriving from Haiti say they’re having a hard time getting placed in city schools.</field> </row> I want these multiple tags to be combined and...

Conference Information XML Schema

I'm starting up a project where we'll be coordinating schedule, speaker, location, and event information for conferences. It seems like a fairly well-defined space, and so I just assumed that there was a schema or standard out there we could reuse. I can't seem to find one, though. The benefits would be obvious - to get my app worki...

django parse xml with template

I'm looking to create a dynamic way to parse xml files and convert them into a different format as easy as possible.. Here is my fixture.xml <Orders> <Order number="" queue="true" getTax="true"> <Customer> <Email><![CDATA[[email protected]]]></Email> </Customer> </Order> </Orders> ...

shorten xml file loading time

I have the below code. It works fine, but it takes too long to load, well about 30 seconds. Is there anything I can do to shorten this time. Also, I would like to search the xml file for documents with NAME starting with A,B,C etx. How do I do that? Many thanks, Dim xdoc As New XPathDocument(xt) Dim nav As XPathNavigator = xdoc...

How to parse this xml using PHP 4.4.8 ?

Hi, usually i have no problems parsing xml in PHP 5 by using Xml to array class. but now, i have a server with PHP 4.4.8 , and i really don't know how to parse it using built-in functions. the xml is like that : <?xml version="1.0" encoding="utf-8" ?> <?pageview_candidate?> <SearchResponse Version="2.2"> <web:Web> <web:Results> ...

Is there a comprehensive guide for Weblogic Scripting Tool (WLST)

I'm unsuccessfully using WLST to modify a jmsmodule.xml file online. I have to achieve this programatically rather than using the Weblogic Console. However, I've "recorded" the commands while in the console. However the recorded commands when put into the online python WLST script don't work. These are the commands that fail: cmo.setPri...

[Flex] XML HTTPService Result and for each...

Hi! XML is cool in flex, but I have an annoying problem to solve, caused by what I can imagine is a feature. You see, when you have just one tag of something, it creates an object which is not an array. But when finds more than one, it puts it on an array structure. I want to solve it elegantly. Any recommendation. Example: this illus...

Splitting large XML files into manageble sections for Hadoop

Is there a input class to deal with [multiple] large XML files based on their tree structure in Hadoop? I have a set of XML files that are of the same schema, but I need to split them into sections of data, as opposed to breaking the sections up. For example the XML file would be: <root> <parent> data </parent> <parent> more data<...

Saving Url inside xml element

I got this error An error occurred while parsing EntityName. Line 1, position 61. when saving this url http://www.autorentalnews.com/t_inside.cfm?action=news_pick&amp;storyID=36229 I don't know why i can't save url like this inside xml file the element wrote like that <New> <ID>8b269f29-69a1-4551-8d72-4602df4e2c7e</ID> <Title>Indus...

LINQ to XML - Load XML fragments from file

I have source XMLfiles that come in with multiple root elements and there is nothing I can do about it. What would be the best way to load these fragments into an XDocument with a single root node that I can create to have a valid XML document? Sample: <product></product> <product></product> <product></product> Should be something li...

PHP - Using XML for a config file(s) are elements better than attributes or opposite?

I'm using XML for a config file in PHP (Using SimpleXML), in creating the config file what is more of a standard. Having all values in elements or using the attributes? Elements Example: <database> <user>test-user</user> <pass>test-pass</pass> </database> Attribute Example: <database user="test-user" pass="test-pass"></databa...