xml

including regex expressions in XML?

I'm trying to set up a situation where a regular expression can occur in xml I know that the xml parser will complain on several key values (namely, < and &) and from what i understand, attributes can not support CDATA tags. however since in .net the lookbehind uses the < character, things become more difficult. What's the best way t...

How to escape XML attribute values, and when do I need to?

I tried writing some XML that has a line like: <node attr="{foo}"/> and loading it in C#, and getting: System.Xml.XmlException: Name cannot begin with the '{' character, hexadecimal value 0x7B. Line 2, position 14. I tried escaping with &#x7b;, but that just gives: System.Xml.XmlException: Name cannot begin with the '&' character,...

Standard way of generating/ writing XML files

Hi. For a project, I need to generate XML files which adhere to a specific format. I was wondering, what is the standard way of doing this? For my part I am using lxml and then writing the XML files. For this, I wrote a small script that takes in XML data as input and then generates the files. Is this way of doing it 'OK'? Cause I a...

Is this a valid XML comment?

Is the code below valid XML? <sometag attribute1="value1" <!-- attribute2="value2" --> attribute3="value3"> </sometag> ...

Custom View not appearing

Here is the XML for the layout in which I want my custom view to appear. <?xml version="1.0" encoding="utf-8"?> <RelativeLayout android:id="@+id/widget273" android:layout_width="fill_parent" android:layout_height="fill_parent" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:rs="http://schemas.android.com/apk/res/com.boo...

How do I extend a base schema with custom elements while remaining open to change from new versions?

Given an XSD as follows: <xs:schema elementFormDefault="qualified" attributeFormDefault="unqualified" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:std="http://..." targetNamespace="..."> <xs:element name="SomeRootNode" type="std:SomeRootNodeType" /> ... </xs:schema> that defines some elements which allow any child from a dif...

Easy way to convert &#XXXX; from HTML to UTF-8 xml either programmaticaly in .Net or using tools

HTML and XML are not same just given for illustration. For input HTML file <p class=MsoNormal style='tab-stops:.5in'><b><span style='mso-tab-count:3'>                                    </span></b><b><span lang=AR-SY dir=RTL style='mso-bidi-language:AR-SY'>&#1593;&#1586;&#1578; &#1575;&#1576;&#1585;&#1575;&#1607;&#1610;&#1605; &#1575;...

how to read the namespaces prefix's using digester in java

Hi I am very much new to xml parsing ,i am trying to parse an xml file using the digester parser , i have done the parsing , but how do i read the root element attributes some thing like this I could able to read the xmlns attribute , but how to i read the xmlns:xsil, xsi:schemalocation attributes ,how do i do this? ...

What is faster reading an XML file or querying a database

I am designing a CMS in C# and need to decide where to save configuration settings for the site. Also considering defining my base html templates and then processing them server side to create the pages ahead of time. So what is generally faster/less overhead for the server reading an XML file or querying that same information from a l...

what is the pattern used to set the attributes of an element to a variable to acess it in the javabean using digester

i am parsing an xml file using the digester , where i set the subelements to the variables of the bean using the pattern like (" root\subelements\subsubelements ","xyz"); where xyz is the variable in the bean , and how do i set the attributes of the element to the variable in the bean like that , I mean what is the pattern and method...

XML Parse with selected row data in table view

Hi, I have a problem about xml parsing. I parsed an xml that holds gas stations information. Each station has city, county, name and location informations. First, I add city names array in my table view. Question 1= When user selects a city name, How can I get county's in that city from my xml. (I don't want to get more than one co...

JAXB marshalling problem - probably namespace related

Given the intitial XML (BPEL) file: <?xml version="1.0" encoding="UTF-8"?> <process name="TestSVG2" xmlns="http://www.example.org" targetNamespace="http://www.example.org" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt; <sequence> <receive name="Receive1" createInstance="yes"/> <assign name="Assign...

Generating XML from PHP

Hello, i need to generate XML structures on the fly using PHP. I've seen many different ways and libraries, but i would like to know which is the most efficient. In general i have arrays and its content has to be returned as XML structure. Thanks in advance. Greetings ! c. ...

Android - Read an XML file with HTTP GET

I need to explore for my project use of web services on Android. I know that there is no official library for XML - RPC web service. But there is for REST XML and i need to test it. I would like to read XML on my web page (Where i have to pass username and Password) from Android with HTTP GET. OR Suppose, i follow This link, then...

Report Writer for Linux (XML, PGSQL, PHP, LINUX)

I'm a developer on an open source ERP project, it's web based and as you'd expect we have a requirement to print various reports. We currently use ezPDF but it means having to set a ridiculously high memory limit / execution time, and that is still limiting us to how many reports we can print. We liked the look of rlib however complicat...

Visual Studio Designer: Opening XML files as a Grid (hidden feature)

I once had this Add-In to VS2005 that allowed me to edit XML files in a Excel-Like table view. I would access it by right-clicking an XML file from within Visual Studio, click Open With, and then select the Add-In. I would then be able to read/write my simple XML in a nice table format. The way I remember it, this feature was shipped...

Content is not allowed in prolog.

i'm trying to convert xml to html using xslt. Am using java.xml.transform to do this in java. it was working fine until i bumped into some xml. it said the following error. [Fatal Error] :1:1: Content is not allowed in prolog. javax.xml.transform.TransformerConfigurationException: javax.xml.transform.TransformerConfigurationException: ...

Is there any virus that corrupts xml files?

I observed that some of my xml files (ssis dtsx packages basically) are getting corrupted randomly. What could be the possible reasons? I couldn't find any clue from system events or logs. Can this be some sort of virus activity? Have you ever faced a similar situation? ...

modifying xml attributes using Installshield

Hi, I'm using installshield 2010. I'm trying to modify xml attributes related to connection string in installshield. i have imported xml file and selected the elements which I need to modify. i'm using function onSQLLogin after creating an sql connection to get username and password given by user. The peculiar behaviour is that if I deb...

Generate a dynamic <table> from XML with XSLT

Hello, I'm trying to do a easy dynamic with an input XML. My XML code looks like: <table> <col size="5%">#</col> <col size="55%">Title</col> <col size="10%">Author</col> <col size="10%">Date</col> <col size="10%">Modification</col> <col size="10%">Actions</col> <output> ...