xml

Multi-level shop, xml or sql. best practice?

Hello, i have a general "best practice" question regarding building a multi-level shop, which i hope doesn't get marked down/deleted as i personally think it's quite a good question, which some people might class as "subjective". I am a developer in charge (in most part) of maintaining and evolving a cms system and associated front-end ...

Creating GUI using XML file in C#

How can I create automatic GUI using XML file in C#? Should I write a parser for the file and define a sort of "protocol" for the file's structure, and after the parse - create the GUI controls manually (respective to the data in the files)? Or is there a better way? Is there a tool, or a built-in code in the .NET environment which can ...

how to remove attribute of a etree Element ?

I've Element of etree having some attributes - how can we delete the attribute of perticular etree Element. ...

Using XSL transformations with jQuery

Does jQuery support XSL transformations of XML? If so how do I use it? I have bespoke code that does this, but would rather use jQuery if possible. ...

How to align Button to the right, without being overlapped by TextView?

Hello, I'm trying to get something like this: http://img202.imageshack.us/img202/552/layoutoy.png. I'm using this as a list item (technically as the group view of an ExpandableListView). Here's the XML file: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" androi...

GUI for generating XML

Hello. Does anybody know of GUIs for generating XMLs? This means the user will not be presented with an IDE with support for XML for him to type XML codes. This would be helpful for non-technical people using the system. I know this sounds easy, given many libraries that can help in generating XMLs. The issue here is that the schema is...

Why are only some of my attributes shown in the response xml of jaxws?

I created a jaxws webservice, but it returns only some of the attributes of my objects in the response xml. E.g. public class MyObject { private String attribute1; private String attribute2; //getter and setter } But the returned XML only contains <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"&gt; ...

How to deserialize MXML with PHP?

Hello, I have an array structure that have to be converted to MXML. I know of PEAR XML_Serialize extension but it seems the output format it produces is a bit different. PHP generated XML: <zone columns="3"> <select column="1" /> <select column="4" /> </zone> MXML format: <mx:zone columns="3"> <mx:select colu...

Insert XElements using LINQ Select?

I have a source piece of xml into which I want to insert multiple elements which are created dependant upon certain values found in the original xml At present I have a sub which does this for me: <Extension()> Public Sub AddElements(ByVal xml As XElement, ByVal elementList As IEnumerable(Of XElement)) For Each e In elementList ...

Updating records from a XML

Hi, I need to provide 4 MySQL stored procedures for each table in a database. They are for get, update, insert and delete. "Get", "delete" and "insert" are straightforward. The problem is "update", because I don't know which parameters will be set and which ones not. Some parameters could be set to NULL, and other simply won't change s...

How to read utf-8 xml from vbs and get correct character code

I'm trying to read xml file from vbs script. Xml is encoded in utf-8 and has appropriate header From vbs script I use microsoft xmldom parser to read xml: Dim objXMLDoc Set objXMLDoc = CreateObject( "Microsoft.XMLDOM" ) objXMLDoc.load("vbs_strings.xml") Inside xml I'm trying to write character by code using &#nnn; notation. Then I r...

Caching XSD schema to reuse in several XML DOM parser tasks in Xerces

How can I cache an XSD schema (residing on disk) to be reused when parsing XMLs in Xerces (C++)? I would like to load the XSD schema when starting the process, then, whenever I need to parse an XML, to validate it first using this loaded schema. ...

how to find recursively for a tag of xml using LXML ?

using lxml is it possible to find recursively for tag " f1 ", i tried findall method but it works only for immediate children. I think I should go for BeautifulSoup for this !!! ...

xpath help substring expression

Hi i have a document from which i am trying to extract a date. But the problem is within the node along with the date their is some text too. Something like <div class="postHeader"> Posted on July 20, 2009 9:22 PM PDT </div> From this tag i just want the date item not the Posted on text. something like ./xhtml:div[@...

Get list of elements and their values from an untyped xml fragment in T-SQL

Similiar to question: http://stackoverflow.com/questions/2266132/how-can-i-get-a-list-of-element-names-from-an-xml-value-in-sql-server How would I also get the values for the list of elements. For example: <Root> <A>a1</A> <B>b1</B> <C>c1</C> </Root> Would return Element | Value A | a1 B | b1 C | c...

Recommendations for Slideshow Publishing Tool

A client has asked me to research production tools for publishing slideshows on their Web site. The tool must be very easy to use and it has to generate a mobile version as well as a desktop version of the slideshow. (I'll spare you the rest of the specs.) Tools under consideration include SlideShowPro and Soundslides. Do you have a f...

Modify XML attribute PHP DOM

I have an XML file that looks like this. <collections id="my collections"> <category id="my category"> <record id="my record"> <title>Some Info</title> </record> </category> </collections> I am looking for away to replace any attribute in the above XML file with a new attribute,Using PHP DOM and Xpath. Any help is highly ...

How can I read malformed XML (unencoded entities) with Perl?

I'm trying to parse an XML file I get from an external source but am having problems because there are unencoded XML entities in the text nodes. Essentially, I'm asking the same question as this, but for Perl instead of PHP. <report> <company>A & W</company> <company>Some Other Company with a < in Inc.</company> </report> I...

Creating a Contact form in Visual Studio ASPX and saving to an XML file when clicking SUBMIT

hey people hope all is well.. i am trying to create a form in VS using ASP that when upon submitting a form the details will get automatically stored in an xml file which can be accessed later on a chosen file save path i have 2 files ... "Contact.aspx" and "Contact.aspx.vb" i have created the form in the "Contact.aspx" and when tryin...

How can I highlight the corresponding titles of clicked links?

I'm writing an XSL file that contains a side-nav menu with a list of links. When the user clicks on one of the links, the page jumps to the corresponding table of information for that link. How can I make it so that when the link is clicked, the title of that table (not the link itself) is highlighted? It should also un-highlight if anot...