xml

Switching languages on a website with PHP

Hello everybody, I'm just looking for some advice. I'm creating a website that offers (at least) 2 languages. The way I'm setting it up is by using XML files for the language, PHP to retrieve the values in the XML nodes. Say you have any XML file, being loaded as follows: <?php $lang = "en"; $xmlFile = simplexml_load_file("$lang/main....

How to make a Stored Procedure that takes in XML and uses that xml as an Update + call this stored procedure with ado.net?

Hi I am using ms sql server 2005 and I want to do a mass update. I am thinking that I might be able to do it with sending an xml document to a stored procedure. So I seen many examples on how to do it for insert CREATE PROCEDURE [dbo].[spTEST_InsertXMLTEST_TEST](@UpdatedProdData XML) AS INSERT INTO dbo.UserTable(CreateDate)...

jquery how to access the an xml node by index?

Hi, say I've an xml returned from server like this: <persons> <person> <firstname>Jon</firstname> </person> <person> <firstname>Jack</firstname> </person> <person> <firstname>James</firstname> </person> </persons> If I want to access the 3rd ...

How to handle XML string %Like% search in C#

Hi, As I know I can search DB with Sql syntax %like%. Now I am working with XML, how can I handle the same search condition for XML file in C#? I want to search the string and find it with part of the Keyword. Not the full text of keyword. <bookstore> <book genre="autobiography"> <title>The Autobiography of Benjamin F...

AS3: Possible to read ppt file?

Is it possible to get the content of a ppt file with as3? Possibliy similar to loading and reading an xml? ...

XML Node replacement in Actionscript 3

Hi, A couple of days ago I asked a question about how to replace and edit values in an xml file with c#. The question got a great answer. Now I wonder how to do this in Actionscript and if there is an as simple way as in c#. The question can be found here: http://stackoverflow.com/questions/2856459/advanced-replace-in-c Thanks ...

managing html rich text selections

Hi, I am writing a component for a web app which will display some html, and let me capture and manipulate the selection boundaries (of the text selected by the user). I have done this successfully (for Mozilla) with a simple div element using window.getSelection(). However, the browser selection API is different for IE. If I were to ...

Rails Atom builder xml.tag!("activity:object-type") error

I am creating a activity stream of my feeds according to the http://activitystrea.ms standard. I am using rails atom builder to create a valid atom feed, but when I use xml.tag!("activity:object-type", "http://activitystrea.ms/schema/1.0/person") the atom feed goes blank.On seeing the source I find the correct xml format from what ...

FLEX datagrid and XML list content

I have the following XML list: <Queries> <Query id="1">qq</Query> <Query id="2">rr</Query> <Query id="3">ss</Query> </Queries> and I would like to display it in the following datagrid: <mx:DataGrid id="dataGrid" dataProvider="@{Queries.Query}" editable="true" width="500"> <mx:columns> <mx:DataGridColumn heade...

Is starting to use CDATA a breaking change?

For interaction with a customer's application we use XML documents. That is, we send an XML over HTTP and receive a response XML document the same way. The customer specified two XML schemata that describe the format of both the request and reply. All was working fine, until one day the customer started to use CDATA sections in the respo...

getting expat to use .dtd for entity replacement in python

I'm trying to read in an xml file which looks like this <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE dblp SYSTEM "dblp.dtd"> <dblp> <incollection> <author>Jos&eacute; A. Blakeley</author> </incollection> </dblp> The point that creates the problem looks is the Jos&eacute; A. Blakeley part: The parser calls its character han...

With C# documentation tags is it possible to persist them through a webservice?

With C# documentation tags is it possible to persist them through a webservice so that the webclient that consumes the webservice will display them via the intellisense? Any information on this would be greatly appreciated. Thanks. Rick ...

How to parse large xml files on google app engine?

Hey, I have fairly large xml file 1mb in size that i host on s3. I need to parse that xml file into my app engine datastore entirely. I have written a simple DOM parser that works fine locally but online it reaches the 30sec error and stops. I tried lowering the xml parsing by downloading the xml file into a BLOB at first before the pa...

How to return xml from .net webservice

Hi Guys!! I am reading data and filling a data set and want to return xml, in a .net web service. so far I am trying to use return mydataset.getxml(); but it is not helping as my method return type is "DataSet" so is there any way I can get a well formatted xml. Thanks ...

CodeIgniter output XML in View

I tried to output XML in the view file. The view file is result_view.php and its first line is <?php echo '<?xml version="1.0" encoding="UTF-8"?>'; ?> But I get the error "Content is not allowed in prolog". So how to do this correctly? I use Eclipse + PDT. ...

What is the performance penalty of XML data type in SQL Server when compared to NVARCHAR(MAX)?

I have a DB that is going to keep log entries. One of the columns in the log table contains serialized (to XML) objects and a guy on my team proposed to go with XML data type rather than NVARCHAR(MAX). This table will have logs kept "forever" (archiving some very old entries may be considered in the future). I'm a little worried about th...

loading xml slow down my site

Hi is it possible that loading an xml is slowing down my site? I've written this little function in php to iterate over an array of Strings to calculate the total amount of my followers function getFeedCount() { foreach ($array as $value) { $xml = simplexml_load_file("http://api.feedburner.com/awareness/1.0/GetFeedData?ur...

XSLT apply templates in different order of xml reading.

I am new to this, so please bear with me... If we have the following xml fragment: <docXML> <PARRAFO orden='1' tipo='parrafo'> <dato> <etiqueta>Título</etiqueta> <tipo>TextBox</tipo> <valor>¿Cuándo solicitar el consejo genético?</valor> <longitud>1500</longitud> <comentario></comentario> <enlace>...

how to remove empty tags in input xml

My java module gets a huge input xml from a mainframe. Unfortunately, the mainframe is unable to skip optional elements, with the result that I get a LOT of empty tags in my input : So, <SSN>111111111</SSN> <Employment> <Current> <Address> <line1/> <line2/> <line3/> <city/> <state/> <country/> </Address> <Phone> <phonenumber/> <countr...

What is the best way to read and write cXML documents in C# ?

I know this is a vague open ended question. I'm hoping to get some general direction. I need to add cXML punchout to an ASP.NET C# site / application. This is replacing something that I wrote years ago in ColdFusion. I'm a reasonably experienced C# developer but I haven't done much with XML. There seems to be lots of different options ...