xml

SVG Scaling Text to fit container

This is likely a very simple question, but how do I get text in SVG to stretch to fit its container? I don't care if it looks ugly from being stretched too long or high, but it needs to fits its container and be as big as possible. Thanks ...

Programmatically load data into solr using solrj and java

How can I load data from an xml file into solr using the solrj API? ...

Parsing an RDF file in python

Hi, Does anyone know how to pars RDF file in Python to get all the values within a specific tag? thanks ...

Storing i18n data in a database using XML

Hello, I may have to store some i18n-ed data in my database using XML if I don't fight back. That's not my choice, but it's in the specifications I have to follow. We would have, by example, something like following in a 'Country' column: <lang='fr'>Etats-Unis</lang> <lang='en'>United States</lang> This would apply to many columns in...

How do I use Nokogiri XML Builder with a field that is the word "text"?

I think "text" must be a special form because when I use xml.text "hello" the tag doesn't appear in the xml doc. Whatever follows that tag is simply listed without a . I tried to use send.(:"text", "hello") but that doesn't work either. Ideas? ...

Schema for element with Attributes and Child nodes

I am trying to write xsd type schema for an element that has a custom type to include addition attributes to extend a base type. I am running into trouble getting the syntax right. <xs:element name="graphs"> <xs:complexType> <xs:sequence> <xs:element name="graph" minOccurs="1" maxOccurs="...

How to convert Xml files to Text Files

Hi all, I have around 8000 xml files that needs to be converted into text files. The text file must contain title, description and keywords of the xml file without the tags and removing other elements and attributes as well. In other words, i need to create 8000 text files containing the title,description and keywords of the xml file. I ...

Ant XML Custom Result Formatter

Hi, Can anyone point me the tutorial for step by step creating my onw XML custom result formatter. I read that we can create our own result formatter by specifying the XSLT in styledir. I want to know what should specify in XSLT, like the xml tag for testsuite name, testcase name and the result. Thanks in advance ...

How to convert Xml files to Text Files 2

Hi all, I have around 8000 xml files that needs to be converted into text files. The text file must contain title, description and keywords of the xml file without the tags and removing other elements and attributes as well. In other words, i need to create 8000 text files containing the title,description and keywords of the xml file. I ...

Reading in a 5000 line text file on the Iphone

Gday, I am trying to create a tiled map for my game, i have had this previously working using other xml methods but i had memory leaks and all sorts of errors. However i had a map load time of about 2.5 - 3 seconds. So i rewrote all of the code using NSMutableStrings and NSStrings. After my best attempt at optomizing it i had a map load...

Is there any C++ XSLT library?

I want to transform an XSD Document into XML Document(Template), is there any C++ XSLT library? ...

Validate xml against xsd using c++

Hi , i am very new to xml and c++. i want to validate xml against xsd using c++ api.can any one gimme any tutorial link? or sample program.i don want to do using msxml as its works in windows and visual studio. i tried to use xerces and libxml but i have failed.now i am trying using tinyxml. please help me to validate xml against xml...

.Net 3.5 DLL XML dependency

Hi, I wrote a class library in C# that uses a external XML file to store some data. I use this data (encoded rules) directly in the class library to do some substitutions within a text parser. The rules within the XML: <rule> <word>h e l l o</word> <sub>Hello</sub> </rule> When I share the lib, I also have to share the XML. T...

How to parse this xml document?

Having gotten such a XML document with the help of ajax (var data = request.responseXML;), how do I parse the contacts?: <?xml version="1.0" encoding="UTF-8"?> <Alladresses xmlns="http://somedomain.org/doc/2007-08-02/"&gt; <Owner> <ID>gut74hfowesdfj49fjsifhryh8e8rta3uyhw4</ID> <Name>Mr.Bin</Name> </Owner> <Contacts> <Person> ...

How to read and parse (local) XML-file in Prototype JS?

I have to create a module in a specific project, which already uses PrototypeJS. What I have: - An XML File with information What I want: - A simple div, which displays the (with XPath filterd) Content of the XML-File. I am complete new to PrototypeJS and dont know where to begin, so I appreciate your help. Blessing chris ...

Parsing concatenated, non-delimited XML messages from TCP-stream using C#

I am trying to parse XML messages which are send to my C# application over TCP. Unfortunately, the protocol can not be changed and the XML messages are not delimited and no length prefix is used. Moreover the character encoding is not fixed but each message starts with an XML declaration <?xml>. The question is, how can i read one XML me...

jquery populate multi-checkbox from xml file

I have to populate a multi checkbox in a form from data taken from an XML file from a post function with jquery? <input type="checkbox" name="mercato[]" id="mkt_0" value="A">A<input type="checkbox" name="mercato[]" id="mkt_1" value="B">B Thanks in advance. ciao h ...

delete XML node, keep original

I need to delete some nodes from an XML variable and I want to keep the original intact. So I pass the XML to a new variable and delete the nodes from that one but the original changes with it. Is there a way to protect the XML from the original variable? ...

How to configure Eclipse XML formatting?

I would like to change the way Eclipse formats XML files. For example, if I have in pom.xml file a section as follows: <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> <scope>test</scope> </dependency> After ctrl+shift+f it will look like: <depen...

StAX - Setting the version and encoding using XMLStreamWriter

Hi, I am using StAX for creating XML files and then validating the file with and XSD. I am getting an error while creating the XML file: javax.xml.stream.XMLStreamException: Underlying stream encoding 'Cp1252' and input paramter for writeStartDocument() method 'UTF-8' do not match. at com.sun.xml.internal.stream.writers.XMLStre...