<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>MySQL Forums - XML</title>
        <description>Forum for MySQL and XML.</description>
        <link>http://forums.mysql.com/list.php?44</link>
        <lastBuildDate>Fri, 24 May 2013 06:45:56 +0000</lastBuildDate>
        <generator>Phorum 5.2.19</generator>
        <item>
            <guid>http://forums.mysql.com/read.php?44,585576,585576#msg-585576</guid>
            <title>Load Data (no replies)</title>
            <link>http://forums.mysql.com/read.php?44,585576,585576#msg-585576</link>
            <description><![CDATA[ How to load xml data from the child tag?<br />
<br />
<b><a href="http://www.manvetechnologies.com/"  rel="nofollow">iPhone Development | iPad Development | iOS Development</a></b>]]></description>
            <dc:creator>lee jenifer</dc:creator>
            <category>XML</category>
            <pubDate>Mon, 06 May 2013 09:31:25 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?44,577019,577019#msg-577019</guid>
            <title>How to create TABLE from XSD schema? (no replies)</title>
            <link>http://forums.mysql.com/read.php?44,577019,577019#msg-577019</link>
            <description><![CDATA[ Is it somehow possible to create a corresponding MySQL TABLE from a given XSD Schema?<br />
<br />
Later incoming XML docs should be imported/converted into rows of this table.<br />
<br />
Peter]]></description>
            <dc:creator>Peter Steiner</dc:creator>
            <category>XML</category>
            <pubDate>Tue, 08 Jan 2013 11:51:19 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?44,574754,574754#msg-574754</guid>
            <title>Create a view from an XML field that one row per node in the XML field--is this possible? (3 replies)</title>
            <link>http://forums.mysql.com/read.php?44,574754,574754#msg-574754</link>
            <description><![CDATA[ Hi All,<br />
<br />
Let's say I've got some XML field like this:<br />
<br />
&lt;xml&gt;<br />
  &lt;Person&gt;<br />
    &lt;FirstName&gt;John&lt;/FirstName&gt;<br />
    &lt;LastName&gt;Smith&lt;/LastName&gt;<br />
  &lt;/Person&gt;<br />
  &lt;Person&gt;<br />
    &lt;FirstName&gt;Jane&lt;/FirstName&gt;<br />
    &lt;LastName&gt;Johnson&lt;/LastName&gt;<br />
  &lt;/Person&gt;<br />
&lt;/xml&gt;<br />
<br />
There are an arbitrary number of Person elements, each with FirstName and LastName child nodes.<br />
<br />
I would like to turn that into a view that looks like this:<br />
<br />
<br />
+---------------------------------+ <br />
| FirstName | LastName            | <br />
+---------------------------------+ <br />
| John      | Smith               | <br />
+---------------------------------+ <br />
| Jane      | Johnson             | <br />
+---------------------------------+ <br />
<br />
Is it possible to create a MySQL view from XML data that returns an variable number of rows depending on the contents of the XML field it is pulling from?<br />
<br />
  -Josh]]></description>
            <dc:creator>Joshua Beall</dc:creator>
            <category>XML</category>
            <pubDate>Fri, 25 Jan 2013 10:44:42 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?44,567979,567979#msg-567979</guid>
            <title>How to select an XML attribut with SQL (2 replies)</title>
            <link>http://forums.mysql.com/read.php?44,567979,567979#msg-567979</link>
            <description><![CDATA[ Hi,<br />
<br />
I am parsing out XML data, using ExtractValue:<br />
<br />
SELECT ExtractValue(xmlfield,'//xmlstring') FROM exampletbl<br />
<br />
&lt;exmpltag attribut=&quot;attvalue1234&quot;&gt;nodevalue1234&lt;/exmpltag&gt;<br />
<br />
Now i want to select the attribut Value (attvalue1234). ExtractValue returns only the tag value (nodevalue1234). <br />
<br />
Is it possible to extract the value of anattribut with SQL ?<br />
<br />
thx for help<br />
Ray]]></description>
            <dc:creator>Ray Ramsaroop</dc:creator>
            <category>XML</category>
            <pubDate>Tue, 11 Sep 2012 14:11:02 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?44,566650,566650#msg-566650</guid>
            <title>Does MySQL have any plan for XML database? (no replies)</title>
            <link>http://forums.mysql.com/read.php?44,566650,566650#msg-566650</link>
            <description><![CDATA[ MySQL has already provided some simple support for XML data. However, MySQL does not support XML index and partition for XML data ? Does MySQL have any plan for XML support in future ?]]></description>
            <dc:creator>jack lin</dc:creator>
            <category>XML</category>
            <pubDate>Wed, 29 Aug 2012 11:56:23 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?44,564813,564813#msg-564813</guid>
            <title>Import xml with short tags into mysql‏ (1 reply)</title>
            <link>http://forums.mysql.com/read.php?44,564813,564813#msg-564813</link>
            <description><![CDATA[ I need to load some xml files into a mysql database.. I did it using<br />
LOAD XML and it works fine.. but sometimes I have some xml with short<br />
code in it and it did not work...<br />
 <br />
<br />
How to repeat:<br />
load xml local infile 'D:\\file_xml.xml' into table book rows identified<br />
by '&lt;Book&gt;'<br />
 <br />
and I have a book table with ID, TITLE, PRICE columns..<br />
 <br />
If the xml is like:<br />
&lt;Books&gt; <br />
&lt;Book&gt; <br />
&lt;ID&gt;1&lt;/ID&gt; <br />
&lt;TITLE&gt;Test1&lt;/TITLE&gt; <br />
&lt;PRICE&gt;&lt;/PRICE&gt; <br />
&lt;/Book&gt; <br />
&lt;Book&gt; <br />
&lt;ID&gt;2&lt;/ID&gt; <br />
&lt;TITLE&gt;Test2&lt;/TITLE&gt; <br />
&lt;PRICE&gt;123&lt;/PRICE&gt; <br />
&lt;/Book&gt; <br />
&lt;/Books&gt; <br />
<br />
The above table is filled correctly...<br />
ID - TITLE - PRICE <br />
1 - Test1 - <br />
2 - Test2 - 123 <br />
<br />
Otherwise if I have an xml file like:<br />
&lt;Books&gt; <br />
&lt;Book&gt; <br />
&lt;ID&gt;1&lt;/ID&gt; <br />
&lt;TITLE&gt;Test1&lt;/TITLE&gt; <br />
&lt;PRICE /&gt; <br />
&lt;/Book&gt; <br />
&lt;Book&gt; <br />
&lt;ID&gt;2&lt;/ID&gt; <br />
&lt;TITLE /&gt; <br />
&lt;PRICE&gt;123&lt;/PRICE&gt; <br />
&lt;/Book&gt; <br />
&lt;/Books&gt; <br />
<br />
The table is not filled properly and I will have<br />
ID - TITLE - PRICE <br />
1 - Test1 - <br />
2 - 123 -]]></description>
            <dc:creator>Weibang Tao</dc:creator>
            <category>XML</category>
            <pubDate>Thu, 30 Aug 2012 09:47:36 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?44,534647,534647#msg-534647</guid>
            <title>Store XML file in mysql (no replies)</title>
            <link>http://forums.mysql.com/read.php?44,534647,534647#msg-534647</link>
            <description><![CDATA[ Hi All, <br />
I want to store the entired xml file into the databas and later parse this file as needed. I have done the following: <br />
-- Create table <br />
create table testxml(xmldata text) <br />
insert into testxml selectl load_file('data.xml'); <br />
select * from testxml; return null <br />
Have I missed any steps here to store the xml file to database? <br />
Thanks, <br />
KP]]></description>
            <dc:creator>Kim Le</dc:creator>
            <category>XML</category>
            <pubDate>Mon, 14 May 2012 20:24:55 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?44,527230,527230#msg-527230</guid>
            <title>Search in a xml file which is stored in a text column (no replies)</title>
            <link>http://forums.mysql.com/read.php?44,527230,527230#msg-527230</link>
            <description><![CDATA[ Hello,<br />
<br />
I have few xml files (size varies from 100 - 200kb ) of same format. Each of them are stores in a text cloumn (a kiund of blob) inside a table.<br />
<br />
<br />
Is there any way that I can make a query, which searches in all xml files at a time return the values from xml.<br />
<br />
for e.g.<br />
<br />
XML file looks some thing like<br />
<br />
&lt;?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot;?&gt;<br />
<br />
&lt;bookstore&gt;<br />
<br />
&lt;book category=&quot;COOKING&quot;&gt;<br />
  &lt;title lang=&quot;en&quot;&gt;Everyday Italian&lt;/title&gt;<br />
  &lt;author&gt;Giada De Laurentiis&lt;/author&gt;<br />
  &lt;year&gt;2005&lt;/year&gt;<br />
  &lt;price&gt;30.00&lt;/price&gt;<br />
&lt;/book&gt;<br />
<br />
&lt;book category=&quot;CHILDREN&quot;&gt;<br />
  &lt;title lang=&quot;en&quot;&gt;Harry Potter&lt;/title&gt;<br />
  &lt;author&gt;J K. Rowling&lt;/author&gt;<br />
  &lt;year&gt;2005&lt;/year&gt;<br />
  &lt;price&gt;29.99&lt;/price&gt;<br />
&lt;/book&gt;<br />
<br />
&lt;book category=&quot;WEB&quot;&gt;<br />
  &lt;title lang=&quot;en&quot;&gt;XQuery Kick Start&lt;/title&gt;<br />
  &lt;author&gt;James McGovern&lt;/author&gt;<br />
  &lt;author&gt;Per Bothner&lt;/author&gt;<br />
  &lt;author&gt;Kurt Cagle&lt;/author&gt;<br />
  &lt;author&gt;James Linn&lt;/author&gt;<br />
  &lt;author&gt;Vaidyanathan Nagarajan&lt;/author&gt;<br />
  &lt;year&gt;2003&lt;/year&gt;<br />
  &lt;price&gt;49.99&lt;/price&gt;<br />
&lt;/book&gt;<br />
<br />
&lt;book category=&quot;WEB&quot;&gt;<br />
  &lt;title lang=&quot;en&quot;&gt;Learning XML&lt;/title&gt;<br />
  &lt;author&gt;Erik T. Ray&lt;/author&gt;<br />
  &lt;year&gt;2003&lt;/year&gt;<br />
  &lt;price&gt;39.95&lt;/price&gt;<br />
&lt;/book&gt;<br />
<br />
&lt;/bookstore&gt; <br />
<br />
<br />
<br />
<br />
<br />
I want to retrive the name of the author whose price is more than 34.<br />
<br />
<br />
Then the query should return James McGovern,Erik T. Ray.<br />
<br />
This is just one xml file stored in a text cell inside a table. I want the query tosearch all the rows and give me the result<br />
<br />
<br />
At the moment the table looks like <br />
<br />
<br />
Primary key (int) ----------file_name (varchar) -----------------filedata(LONG TEXT)<br />
1 ---------------------output1 ---------------------TEXT(file)<br />
2 ---------------------output2 ---------------------TEXT(file)<br />
3 ---------------------output3 ---------------------TEXT(file)<br />
<br />
<br />
<br />
<br />
thanks,]]></description>
            <dc:creator>asd 123</dc:creator>
            <category>XML</category>
            <pubDate>Tue, 24 Apr 2012 10:08:02 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?44,510587,510587#msg-510587</guid>
            <title>Using XML as a list in a MySQL Column (1 reply)</title>
            <link>http://forums.mysql.com/read.php?44,510587,510587#msg-510587</link>
            <description><![CDATA[ So I have a MySQL database for a music library.  <br />
<br />
As I have several songs by the same artist, I have a table called Artists. <br />
<br />
The Songs table links to the Artist table via an Artist_id.<br />
<br />
Since a Song can have several different artists (or let's say 2 for a duet), I'm using XML to put the list of artist id's in.  Here's what the data in Songs.Artist_ID's column looks like:<br />
<br />
&lt;artist_ids&gt;<br />
	&lt;artist_id&gt;239780&lt;/artist_id&gt;<br />
	&lt;artist_id&gt;784534&lt;/artist_id&gt;<br />
&lt;/artist_ids&gt; <br />
<br />
My question is simple.  I've done queries by linking to the artist table via ExtractValue, but that only gets me the first one (or a specific one if I get specific with the XPath).  <br />
<br />
How can I search for or link with any/all of the artist_id's?  I do not want to loop through SQL queries if I don't have to.  Is there an easy way to say, here's a list of artists, go fetch the data on all of them?<br />
<br />
This is the query I use now, and it gets it for the first artist only.<br />
<br />
SELECT `tanoshimi`.`filename`, `linkArtists`.`name`, `linkSongs`.`title`  <br />
FROM `public_music`.`tanoshimi`, `public_music`.`linkArtists`, `public_music`.`linkSongs` <br />
WHERE linkSongs.song_id = tanoshimi.song_id AND linkArtists.artist_id = ExtractValue(artist_ids, '/artist_ids/artist_id')<br />
<br />
Any help on how to have multiple Artists listed in a single Column, but still searchable would be appreciated!<br />
-Chris Joy]]></description>
            <dc:creator>Christopher Joy</dc:creator>
            <category>XML</category>
            <pubDate>Fri, 30 Mar 2012 03:18:04 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?44,432484,432484#msg-432484</guid>
            <title>XSL file formatting date (1 reply)</title>
            <link>http://forums.mysql.com/read.php?44,432484,432484#msg-432484</link>
            <description><![CDATA[ XSL file formatting<br />
<br />
Hi there, I need your appreciated help.<br />
<br />
I have problem with this files xsl, the problem is the output for the field date and number:<br />
<br />
<b>2011-05-13T21:50:00</b> instead of <b>13/05/2001 21:50:00</b><br />
<b>.00</b> instead of <b>0</b><br />
<br />
This is the output in XML:<br />
<pre class="bbcode">&lt;xml xmlns:s=&quot;uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882&quot; xmlns:dt=&quot;uuid:C2F41010-65B3-11d1-A29F-00AA00C14882&quot; xmlns:rs=&quot;urn:schemas-microsoft-com:rowset&quot; xmlns:z=&quot;#RowsetSchema&quot;&gt;
	&lt;s:Schema id=&quot;RowsetSchema&quot;&gt;
		&lt;s:ElementType name=&quot;row&quot; content=&quot;eltOnly&quot; rs:CommandTimeout=&quot;30&quot;&gt;

			&lt;s:AttributeType name=&quot;myDates&quot; rs:number=&quot;6&quot; rs:nullable=&quot;true&quot; rs:writeunknown=&quot;true&quot;&gt;
				&lt;s:datatype dt:type=&quot;dateTime&quot; rs:dbtype=&quot;timestamp&quot; dt:maxLength=&quot;16&quot; rs:scale=&quot;0&quot; rs:precision=&quot;19&quot; rs:fixedlength=&quot;true&quot;/&gt;
			&lt;/s:AttributeType&gt;

			&lt;s:AttributeType name=&quot;Net&quot; rs:number=&quot;29&quot; rs:nullable=&quot;true&quot; rs:writeunknown=&quot;true&quot;&gt;
				&lt;s:datatype dt:type=&quot;number&quot; rs:dbtype=&quot;numeric&quot; dt:maxLength=&quot;19&quot; rs:scale=&quot;2&quot; rs:precision=&quot;10&quot; rs:fixedlength=&quot;true&quot;/&gt;
			&lt;/s:AttributeType&gt;

			&lt;s:extends type=&quot;rs:rowbase&quot;/&gt;
		&lt;/s:ElementType&gt;
	&lt;/s:Schema&gt;
	&lt;rs:data&gt;

		<b>&lt;z:row myDates=&quot;2011-05-13T21:50:00&quot; Net=&quot;.00&quot; /&gt;</b>

	&lt;/rs:data&gt;
&lt;/xml&gt;</pre>
<br />
This output XML is generate with ASP code and saved in the csv format:<br />
<pre class="bbcode">
&lt;!-- #include virtual=&quot;/_XML/adovbs.inc&quot; --&gt;

&lt;% 

filename = &quot;titty.xml&quot; 

Set xmlDoc = CreateObject(&quot;MSXML2.DOMDocument.4.0&quot;)
Set xslDoc = CreateObject(&quot;MSXML2.DOMDocument.4.0&quot;)

%&gt;

&lt;%

sql = &quot;SELECT * FROM tbl_login&quot; 
Set rs = objConn.Execute(sql) 

rs.Save xmlDoc, 1 

xmlDoc.Save Server.MapPath(filename)

rs.Close 
Set rs = Nothing 

%&gt;

&lt;%

 Set oDOM = CreateObject(&quot;MSXML2.DOMDocument.4.0&quot;)
 oDOM.async = False 
 
 oDOM.Load Server.Mappath(filename)
  
 Set oXSL = CreateObject(&quot;MSXML2.DOMDocument.4.0&quot;) 
 oXSL.async = False 
 
 <b>oXSL.Load Server.Mappath(&quot;Trasform_csv.xsl&quot;) </b>
 
 strTransform = oDOM.transformNode(oXSL) 
 
 Set fso = CreateObject(&quot;Scripting.FileSystemObject&quot;)
 strPath = Server.Mappath(&quot;testme.csv&quot;)
  
 Set file = fso.opentextfile(strPath, 2, True)
 file.write strTransform

 file.Close 
 Set file = Nothing
  
 Set fso = Nothing
                        
 Set oDOM = Nothing 
 Set oXML = Nothing 
 Set oXSL = Nothing 
  
%&gt;</pre>
<br />
The XSL file:<br />
<pre class="bbcode">&lt;?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot;?&gt;
&lt;xsl:stylesheet version=&quot;1.0&quot; 
 xmlns:xsl=&quot;<a href="http://www.w3.org/1999/XSL/Transform&quot"  rel="nofollow">http://www.w3.org/1999/XSL/Transform&quot</a>; 
 xmlns:s=&quot;uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882&quot; 
 xmlns:dt=&quot;uuid:C2F41010-65B3-11d1-A29F-00AA00C14882&quot; 
 xmlns:rs=&quot;urn:schemas-microsoft-com:rowset&quot; 
 xmlns:z=&quot;#RowsetSchema&quot;&gt;
	&lt;xsl:output omit-xml-declaration=&quot;yes&quot;/&gt;
	&lt;xsl:template match=&quot;/&quot;&gt;
		&lt;!-- show a header by looking Schema element --&gt;
		&lt;xsl:for-each select=&quot;/xml/s:Schema/s:ElementType/s:AttributeType&quot;&gt;
			&lt;xsl:value-of select=&quot;@name&quot;/&gt;
			&lt;xsl:choose&gt;
				&lt;xsl:when test=&quot;position()!=last()&quot;&gt;
  				    &lt;!-- xls --&gt;
					&lt;xsl:text&gt;&amp;#x09;&lt;/xsl:text&gt;
					&lt;!-- csv --&gt;
					&lt;!--xsl:text&gt;,&lt;/xsl:text--&gt;
				&lt;/xsl:when&gt;
				&lt;xsl:otherwise&gt;
					&lt;xsl:text&gt;&amp;#xa;&lt;/xsl:text&gt;
				&lt;/xsl:otherwise&gt;
			&lt;/xsl:choose&gt;
		&lt;/xsl:for-each&gt;
		&lt;!-- row data --&gt;
		&lt;xsl:for-each select=&quot;/xml/rs:data/z:row&quot;&gt;
      &lt;xsl:variable name=&quot;row&quot; select=&quot;.&quot;/&gt;
      &lt;!-- for each column --&gt;
			&lt;xsl:for-each select=&quot;/xml/s:Schema/s:ElementType/s:AttributeType&quot;&gt;
			   &lt;!-- display each column if it exists --&gt;
			  &lt;xsl:variable name=&quot;columnName&quot; select=&quot;@name&quot;/&gt;
				&lt;!-- go through all columns and display something that matches--&gt;
				&lt;xsl:value-of select=&quot;$row/@*[name()=$columnName]&quot; /&gt;
				&lt;!--xsl:value-of select=&quot;translate($row/@*[name()=$columnName],'.',',')&quot; /--&gt;
				&lt;xsl:if test=&quot;position()!=last()&quot;&gt;
				    &lt;!-- xls --&gt;
					&lt;xsl:text&gt;&amp;#x09;&lt;/xsl:text&gt;
					&lt;!-- csv --&gt;
					&lt;!--xsl:text&gt;,&lt;/xsl:text--&gt;
				&lt;/xsl:if&gt;
	    &lt;/xsl:for-each&gt;
			&lt;xsl:text&gt;&amp;#xa;&lt;/xsl:text&gt;
	  &lt;/xsl:for-each&gt;
	&lt;/xsl:template&gt;
&lt;/xsl:stylesheet&gt;</pre>
<br />
I need another output in the XML file:<br />
<pre class="bbcode"><b>&lt;z:row myDates=&quot;13/05/2001 21:50:00&quot; Net=&quot;0.00&quot; /&gt;</b></pre>
And in the CSV file:<br />
<pre class="bbcode"><b>13/05/2001 21:50:00, 0</b></pre>
<br />
Can you help me?<br />
Thanks in advance.<br />
Cheers]]></description>
            <dc:creator>angel rivero</dc:creator>
            <category>XML</category>
            <pubDate>Thu, 01 Sep 2011 16:14:06 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?44,431499,431499#msg-431499</guid>
            <title>Using XML in MySQL 5.x and 6.x (no replies)</title>
            <link>http://forums.mysql.com/read.php?44,431499,431499#msg-431499</link>
            <description><![CDATA[ in the former topic, there was an link to information about the use of the lib_mysqludf_xql library<br />
<br />
<a href="http://dev.mysql.com/tech-resources/articles/xml-in-mysql5.1-6.0.html"  rel="nofollow">http://dev.mysql.com/tech-resources/articles/xml-in-mysql5.1-6.0.html</a><br />
but the document no longer exists. does someone have the updated URL?]]></description>
            <dc:creator>Marco Antonio Rios</dc:creator>
            <category>XML</category>
            <pubDate>Mon, 22 Aug 2011 20:48:37 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?44,430375,430375#msg-430375</guid>
            <title>mysql 5.6 - loax xml - loading data from child tag (no replies)</title>
            <link>http://forums.mysql.com/read.php?44,430375,430375#msg-430375</link>
            <description><![CDATA[ Hi,<br />
<br />
I am using MySQL 5.6 for loading XML file into database table. I found &quot;LOAD XML&quot; is very useful for this purpose. However, I am facing a problem in loading data of child tag. Below is sample XML file.<br />
<br />
&lt;companies&gt;<br />
&lt;company id=1 name=test&gt;<br />
&lt;titleArts&gt;<br />
&lt;image url=&quot;<a href="http://img-origin.abc.com/bed5.jpg&quot"  rel="nofollow">http://img-origin.abc.com/bed5.jpg&quot</a>; creditLine=&quot;&quot; selected=&quot;true&quot;/&gt;<br />
&lt;/titleArts&gt;<br />
&lt;widePosters&gt;<br />
&lt;image url=&quot;<a href="http://img-origin.abc.com/6ac6c0.jpg&quot"  rel="nofollow">http://img-origin.abc.com/6ac6c0.jpg&quot</a>; creditLine=&quot;&quot; selected=&quot;true&quot;/&gt;<br />
&lt;/widePosters&gt;<br />
&lt;posters&gt;<br />
&lt;image url=&quot;<a href="http://img-origin.abc.com/1.jpg&quot"  rel="nofollow">http://img-origin.abc.com/1.jpg&quot</a>; creditLine=&quot;&quot; selected=&quot;true&quot;/&gt;<br />
&lt;image url=&quot;<a href="http://img-origin.abc.com/2.jpg&quot"  rel="nofollow">http://img-origin.abc.com/2.jpg&quot</a>; creditLine=&quot;&quot; selected=&quot;false&quot;/&gt;<br />
&lt;/posters&gt;<br />
&lt;/company&gt;<br />
&lt;/companies&gt;<br />
<br />
As you can see titlearts, wideposters, posters have image tag. If i use load xml and specify &lt;image&gt; tag, It will load all 4 records. But i want to load only data from posters tag. If i use tag &lt;posters&gt;, It is only loading last record. But i want to load both 2 image url's with in posters tag. How can i do this? Appreciate your help on this.<br />
<br />
Thanks<br />
Ravi]]></description>
            <dc:creator>RAVI VIDELA</dc:creator>
            <category>XML</category>
            <pubDate>Thu, 11 Aug 2011 18:11:18 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?44,427243,427243#msg-427243</guid>
            <title>convert to PHP (no replies)</title>
            <link>http://forums.mysql.com/read.php?44,427243,427243#msg-427243</link>
            <description><![CDATA[ I have a php script and need a section translated to PHP/XML, can someone help?<br />
<br />
<pre class="bbcode">
&lt;?php
include(&quot;config.php&quot;);

echo &quot;&lt;Carousel&gt;\n&quot;;

 $path = &quot;<a href="http://abcd.com/&quot"  rel="nofollow">http://abcd.com/&quot</a>;; 

$sql = &quot;(select a.im_name, a.description, b.name from images a, department b where a.dpt_id = '$pid' and a.dpt_id = b.dpt_id)&quot;;

$result = mysql_query($sql);

while($row = mysql_fetch_array($result))
  	{
  		/* This works */
  		print $row['im_name'];
  		print &quot;&amp;nbsp;&quot;;
  		print $row['name'];
  		print &quot;&amp;nbsp;&quot;;
  		print $row['description'];
  		print &quot;&lt;br&gt;&quot;;
  		/* end works */
	} 
	//* Somehow I need to plug the above into the below, Every time I try I get ERRORS *//
	//* &lt;photo image=&quot;images/(im_name)&quot; url=&quot;(path)/(name)/index.php&quot; target=&quot;_self&quot;&gt;&lt;![CDATA[(description)]]&gt;&lt;/photo&gt; *//


echo &quot;&lt;/Carousel&gt;\n&quot;;

mysql_close($dbh);
?&gt;

I just need this fixed:
&lt;photo image=&quot;images/(im_name)&quot; url=&quot;(path)/(name)/index.php&quot; target=&quot;_self&quot;&gt;&lt;![CDATA[(description)]]&gt;&lt;/photo&gt;

Using $row['im_name'] for (im_name) and
$path = &quot;<a href="http://abcd.com/&quot"  rel="nofollow">http://abcd.com/&quot</a>; for (path)
$row['name'] for (name) and
$row['description'] for (description).

I tried this:
		echo &quot;&lt;photo image=\&quot;&quot;.$path.&quot;images/&quot;.$row['im_name'].&quot;\&quot;&quot;;
		echo &quot;url=\&quot;&quot;.$path.$row['name'].&quot;/index.php\&quot; target=\&quot;_self\&quot;&gt;&quot;;
		echo &quot;&lt;![CDATA[&quot;.$row['description'].&quot;]&gt;&lt;/photo&gt;&quot;;

and nothing, no data or I get a syntax error.

Thank you</pre>]]></description>
            <dc:creator>Gordon White</dc:creator>
            <category>XML</category>
            <pubDate>Mon, 18 Jul 2011 02:27:14 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?44,420336,420336#msg-420336</guid>
            <title>Importing XML/XSD data (no replies)</title>
            <link>http://forums.mysql.com/read.php?44,420336,420336#msg-420336</link>
            <description><![CDATA[ Hi folks<br />
<br />
while I'm not a complete newb at mysql I completely fail at this one thing. DrugBank is an openly available database for which mirrors are available at <a href="http://www.drugbank.ca/downloads"  rel="nofollow">http://www.drugbank.ca/downloads</a>. Specifically, they provide a rather large XML file (roughly 90 MB) along with a schema, available at <a href="http://www.drugbank.ca/docs/drugbank.xsd"  rel="nofollow">http://www.drugbank.ca/docs/drugbank.xsd</a><br />
<br />
Now, I've been trying for the past hours to import this data into a new database on my Mac OSX 10.6 with MySQL 5.5. I am not interested in a single table but the whole database. I've googled for load table commands, tried middleware such as Navicat (lite), MySQL Workbench, and - I admit - even Filemaker. I tried creating tables from the XSD file with xmldbms but it crashes because of the Manifest being malformed or something.<br />
<br />
I'm really at a loss here. I see the data in the xml, I see the data structure in the xsd, and I'm pretty sure this must be a standard problem. So, can anyone please point me in the general direction?<br />
<br />
<br />
Your help is very much appreciated!<br />
Alex]]></description>
            <dc:creator>Alex Bertmann</dc:creator>
            <category>XML</category>
            <pubDate>Wed, 18 May 2011 20:43:01 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?44,406840,406840#msg-406840</guid>
            <title>xml format  and importing (no replies)</title>
            <link>http://forums.mysql.com/read.php?44,406840,406840#msg-406840</link>
            <description><![CDATA[ Hi Guys,<br />
<br />
I have an XML file that I need to import into a MySQL database, but the xml format I am being given is not like anything I have seen before. It looks like:<br />
<br />
&lt;xml xmlns:s='uuid:xxx'<br />
	xmlns:dt='uuid:xxx'<br />
	xmlns:rs='urn:schemas-microsoft-com:rowset'<br />
	xmlns:z='#RowsetSchema'&gt;<br />
&lt;s:Schema id='RowsetSchema'&gt;<br />
	&lt;s:ElementType name='row' content='dt1' rs:ctout='30'&gt;<br />
		&lt;s:AttributeType name='ID' rs:number='1' rs:nullable='true' rs:writeunknown='true'&gt;<br />
			&lt;s:datatype dt:type='string' dt:maxLength='255'/&gt;<br />
		&lt;/s:AttributeType&gt;<br />
##this continues with a lot more &lt;s:AttributeType&gt; and &lt;s:datatype&gt;##<br />
	&lt;/s:ElementType&gt;<br />
&lt;/s:Schema&gt;<br />
<br />
&lt;rs:data&gt;<br />
	&lt;z:row ID='123' Case_Create_Date='2011-02-02 11:59:30' Contact='Bob' . . . /&gt;<br />
## This continues with all the data on a single line ##<br />
&lt;/rs:data&gt;<br />
&lt;/xml&gt; <br />
<br />
<br />
Ideally I would like to use the schema section to create a table from, and then import the data element accordingly, but I have neve seen an XML file in this format, where the data is grouped on a single line, as opposed to being in individual tags.<br />
<br />
<br />
Has anyone got any experience of working with this type of file? and could anyone suggest ways of importing it?]]></description>
            <dc:creator>IGGt .</dc:creator>
            <category>XML</category>
            <pubDate>Wed, 09 Feb 2011 10:00:25 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?44,404645,404645#msg-404645</guid>
            <title>XML Site map for blogger (no replies)</title>
            <link>http://forums.mysql.com/read.php?44,404645,404645#msg-404645</link>
            <description><![CDATA[ www.thedhanush.blogspot.com<br />
www.vishalfansclub.blogspot.com<br />
www.jayamravifansclub.blogspot.com<br />
<br />
i have threee blogs i want to submit xml sitemap how to generate it.]]></description>
            <dc:creator>web design</dc:creator>
            <category>XML</category>
            <pubDate>Wed, 26 Jan 2011 01:54:52 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?44,403142,403142#msg-403142</guid>
            <title>extracting format from xml (3 replies)</title>
            <link>http://forums.mysql.com/read.php?44,403142,403142#msg-403142</link>
            <description><![CDATA[ Hi, I am kinda new to mysql and xml, so thanks in advance: <br />
<br />
I have a sample xml file and a DB table. Table looks something like this:<br />
<br />
get url      | title page     |  ....|  ....|<br />
<br />
<br />
I am trying to extract specific parts of xml and insert them into the DB table in this format. <br />
<br />
<br />
get url                   | title page                  | A ....    | B ....   |<br />
www.google.com = pass     | google = pass               | A1 = pass | B1 = pass|<br />
<br />
<br />
<br />
This is my code thus far: <br />
LOAD DATA INFILE 'testResult.xml' INTO TABLE result FIELDS TERMINATED BY '&quot;'  LINES STARTING BY '&lt;td class=&quot;';<br />
<br />
and this my a little of my xml:<br />
&lt;br/&gt;&lt;table border=&quot;1&quot; cellspacing=&quot;0&quot;&gt;<br />
	&lt;tr&gt;<br />
		&lt;td class=&quot;pass&quot;&gt;&lt;i&gt;get url&lt;/i&gt;&lt;/td&gt;<br />
		&lt;td&gt;&lt;a href=&quot;<a href="http://www.google.com/&quot;&gt;http://www.google.com/&lt;/a&gt;&lt;/td&gt"  rel="nofollow">http://www.google.com/&quot;&gt;http://www.google.com/&lt;/a&gt;&lt;/td&gt</a>;<br />
	&lt;/tr&gt;<br />
&lt;/table&gt;<br />
&lt;br/&gt;&lt;table border=&quot;1&quot; cellspacing=&quot;0&quot;&gt;<br />
	&lt;tr&gt;<br />
		&lt;td&gt;&lt;i&gt;title&lt;/i&gt;&lt;/td&gt;<br />
		&lt;td&gt;&lt;b&gt;is&lt;/b&gt;&lt;/td&gt;<br />
		&lt;td class=&quot;pass&quot;&gt;Google&lt;/td&gt;<br />
	&lt;/tr&gt;<br />
&lt;/table&gt;<br />
<br />
<br />
How can I modify my code to get the format I need. Its seems I need to get the class= pass tags 1st as x  then field name tags 2nd as y, and concat y &quot;=&quot; x, but through the xml. There might not be y everytime there is an x. So this has to be specifically extracted in such a way in which I can get the specific format.]]></description>
            <dc:creator>Nehemiah Clark</dc:creator>
            <category>XML</category>
            <pubDate>Thu, 17 Mar 2011 12:49:13 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?44,401661,401661#msg-401661</guid>
            <title>Re: How to add a new node? (1 reply)</title>
            <link>http://forums.mysql.com/read.php?44,401661,401661#msg-401661</link>
            <description><![CDATA[ Hi,<br />
<br />
I wanted to ask the same question from all exps here. Can you please let us know for how to add new node in an xml.<br />
<br />
&lt;root&gt;<br />
&lt;a&gt;aValue&lt;/a&gt;<br />
&lt;b&gt;bValue&lt;/b&gt;<br />
&lt;/root&gt;<br />
<br />
<br />
to the following,<br />
<br />
&lt;root&gt;<br />
&lt;a&gt;aValue&lt;/a&gt;<br />
&lt;a&gt;aValue2&lt;/a&gt;<br />
&lt;b&gt;bValue&lt;/b&gt;<br />
&lt;/root&gt; <br />
<a href="http://forums.mysql.com/read.php?44,182422,210135#msg-210135"  rel="nofollow">http://forums.mysql.com/read.php?44,182422,210135#msg-210135</a><br />
<br />
Thanks]]></description>
            <dc:creator>prabhat singh</dc:creator>
            <category>XML</category>
            <pubDate>Thu, 14 Apr 2011 18:38:13 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?44,401373,401373#msg-401373</guid>
            <title>Any Other Tool than Altova to Edit XML file? (no replies)</title>
            <link>http://forums.mysql.com/read.php?44,401373,401373#msg-401373</link>
            <description><![CDATA[ Is there any other tool other than Altova XML Spy that can eid XML file, its tags and schema? Which one is that and what is the basic difference between its and Altova's credibility?]]></description>
            <dc:creator>Cathy Duncan</dc:creator>
            <category>XML</category>
            <pubDate>Tue, 04 Jan 2011 09:47:15 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?44,395305,395305#msg-395305</guid>
            <title>Transfering XSE file to wordpress (no replies)</title>
            <link>http://forums.mysql.com/read.php?44,395305,395305#msg-395305</link>
            <description><![CDATA[ Hey guys, is there any way I can change themes from a xse file extension to one that would operate on wordpress or any way I can manage my xsitepro themes through wordpress would be great. Thanks]]></description>
            <dc:creator>Aonghus` O donnell</dc:creator>
            <category>XML</category>
            <pubDate>Fri, 19 Nov 2010 14:35:26 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?44,389042,389042#msg-389042</guid>
            <title>XQUERY (no replies)</title>
            <link>http://forums.mysql.com/read.php?44,389042,389042#msg-389042</link>
            <description><![CDATA[ which versions of mysql supports xquery?]]></description>
            <dc:creator>vmyl li</dc:creator>
            <category>XML</category>
            <pubDate>Thu, 07 Oct 2010 05:36:02 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?44,387747,387747#msg-387747</guid>
            <title>XML or Array Parameters? (no replies)</title>
            <link>http://forums.mysql.com/read.php?44,387747,387747#msg-387747</link>
            <description><![CDATA[ I've been searching around for this but haven't found a solution that is satisfactory.  I'm coming from a SQL Server background and new to MySQL, but this is a sceario that is quite common for me.<br />
<br />
I have an application which I need to pass an array to a stored proc in the database.  I want to pass an array so I don't have to make multiple calls.  Usually in SQL Server I'll construct some XML then use the OpenXML() function and basically cast it to a temp table (or table variable).  This is extremely convenient.<br />
<br />
I've seen the ExtractValue() function in MySQL, but so far can't get it to accomplish the same thing because it will put multiple values into the same row/column ( will say this is a very cool function though).  Can someone tell me how to get multiple values into a table with 1 DB call?<br />
<br />
Ex.  Say this is my character parameter.<br />
<br />
'&lt;books&gt;<br />
&lt;author&gt;<br />
&lt;firstname&gt;Magic&lt;/firstname&gt;<br />
&lt;lastname&gt;Johnson&lt;/lastname&gt;<br />
&lt;/author&gt;<br />
&lt;author&gt;<br />
&lt;firstname&gt;John&lt;/firstname&gt;<br />
&lt;lastname&gt;Smith&lt;/lastname&gt;<br />
&lt;/author&gt;<br />
&lt;/books&gt;'<br />
<br />
SELECT * FROM MyTable (whatever my temp table is)<br />
results &quot;should be&quot; be:<br />
<br />
firstname    lastname<br />
Magic        Johnson<br />
John         Smith<br />
<br />
Thanks in advance,<br />
<br />
J]]></description>
            <dc:creator>Jeremy Hurst</dc:creator>
            <category>XML</category>
            <pubDate>Tue, 28 Sep 2010 12:59:31 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?44,386244,386244#msg-386244</guid>
            <title>Event for reading a XML file (no replies)</title>
            <link>http://forums.mysql.com/read.php?44,386244,386244#msg-386244</link>
            <description><![CDATA[ Hi,<br />
<br />
  I have a little trouble I have detected in a routine created by me for parsing the XML data I retrieve from a file. The fact is the next: I have a file in my server that is updated every 3 seconds by my data provider and I created an Event that call a MySQL function that load such file (in XML format), parse it, and store the info in its respective Table. The work is done in a good way. The Issue is that I detected that from time to time the system lost packets.<br />
<br />
  Well, I decided to check it out in a separated Table with two fields; dateInserted and data.<br />
<br />
  At the outset I could see that every three seconds there was a new row with its data but from suddenly, there was a gap of 15 or 30 seconds without any row.<br />
<br />
  Is there any process in MySQL thats stop the Event timers? This Event is the most important in the system and I need its be as accurate as possible.<br />
<br />
  Any advice?<br />
<br />
Thanks for your time.<br />
<br />
----------------------------------------------<br />
Michael A.<br />
Engineer of b-markets.com<br />
www.betsmarkets.com]]></description>
            <dc:creator>Miguel A. Villar</dc:creator>
            <category>XML</category>
            <pubDate>Sat, 18 Sep 2010 20:54:49 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?44,383458,383458#msg-383458</guid>
            <title>Extracting root-level attribute values (no replies)</title>
            <link>http://forums.mysql.com/read.php?44,383458,383458#msg-383458</link>
            <description><![CDATA[ Dear netters,<br />
<br />
We are parsing out XML data, using ExtractValue.<br />
An example of what needs to be parsed is below:<br />
<br />
&lt;BinaryParameterType name=&quot;frameSyncType&quot; shortDescription=&quot;Frame Synchronization Field&quot; initialValue=&quot;0934&quot;&gt;<br />
    &lt;LongDescription&gt;&lt;This is a long description&lt;/LongDescription&gt;<br />
    &lt;BinaryDataEncoding bitOrder=&quot;mostSignificantBitFirst&quot;&gt;<br />
        &lt;SizeInBits&gt;<br />
            &lt;FixedDecimalValue&gt;13&lt;/FixedDecimalValue&gt;<br />
        &lt;/SizeInBits&gt;<br />
    &lt;/BinaryDataEncoding&gt;<br />
&lt;/BinaryParameterType&gt;<br />
<br />
Using extractValue, one can specify the Xpath as:<br />
/BinaryParameterType/LongDescription<br />
  or<br />
/BinaryParameterType/BinaryDataEncoding<br />
  or<br />
/BinaryParameterType/BinaryDataEncoding/SizeInBits<br />
...<br />
<br />
However, how does one extract actual BinaryParameterType attributes, like name, shortDescription and initialValue?<br />
<br />
Thank you for your help!<br />
<br />
--Alex]]></description>
            <dc:creator>Alex Vilner</dc:creator>
            <category>XML</category>
            <pubDate>Tue, 31 Aug 2010 18:47:44 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?44,382489,382489#msg-382489</guid>
            <title>ExtractValue Performance (no replies)</title>
            <link>http://forums.mysql.com/read.php?44,382489,382489#msg-382489</link>
            <description><![CDATA[ I have a 2Mb XML file, which contains a flat and fairly well-defined structure:<br />
&lt;root&gt;<br />
  &lt;mnemonic&gt;<br />
     &lt;mnemonic_name&gt;<br />
     &lt;type&gt;<br />
     &lt;short_name&gt;<br />
     &lt;min_value&gt;<br />
     &lt;max_value&gt;<br />
     ...<br />
   &lt;/mnemonic&gt;<br />
&lt;/root&gt;<br />
<br />
Mnemonic section is repeated about 3500 times. There are about 20 attributes for the mnemonic in total.<br />
<br />
I am trying to parse out this XML, using ExtractValue - in a loop that is all too familiar:<br />
1. Get the count of mnemonic nodes<br />
2. Loop <br />
       insert into sometable ( col1, col2, ....)<br />
       select <br />
            extractValue(xml, 'root/mnemonic[$row]/col1),<br />
            extractValue(xml, 'root/mnemonic[$row]/col2),<br />
            ...<br />
       &lt;where col1, col2, etc. refer to the actual attributes (mnemonic_name, short_name, etc...)<br />
<br />
<br />
The speed at which it is going is.... about a record per second.<br />
Given the fact that this is the process that takes about 10 seconds in Oracle (on the same machine), what can be done to speed it up???<br />
<br />
Thank you in advance!<br />
<br />
--Alex]]></description>
            <dc:creator>Alex Vilner</dc:creator>
            <category>XML</category>
            <pubDate>Wed, 25 Aug 2010 21:40:55 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?44,374603,374603#msg-374603</guid>
            <title>Automatically update xml created from mysql (no replies)</title>
            <link>http://forums.mysql.com/read.php?44,374603,374603#msg-374603</link>
            <description><![CDATA[ I have a very large xml that I'm working with and I am trying to set it up to be automatically updated whenever the database is altered.  How do I do this...]]></description>
            <dc:creator>Amber Reynolds</dc:creator>
            <category>XML</category>
            <pubDate>Fri, 02 Jul 2010 15:34:57 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?44,374602,374602#msg-374602</guid>
            <title>XML Output with xsl stylesheet (no replies)</title>
            <link>http://forums.mysql.com/read.php?44,374602,374602#msg-374602</link>
            <description><![CDATA[ I have my xml document ready to go I actually just got it off of the database.  My question is that with the new format for MySQL 5.0:<br />
<br />
&lt;field name=&quot;column_name&quot;&gt;&lt;/field&gt;<br />
<br />
How do I get an xsl to work with it.  Whenever I try to link them with the fields it doesn't work.  Unfortunately the database that I'm working with has 140 columns so it is a rather large database.  How can I get it to link together and look the way that I wanted? Is the stylesheet still formatted the same or did that change too?]]></description>
            <dc:creator>Amber Reynolds</dc:creator>
            <category>XML</category>
            <pubDate>Fri, 02 Jul 2010 15:33:35 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?44,373572,373572#msg-373572</guid>
            <title>insert a tag element in longtext field used as XML (no replies)</title>
            <link>http://forums.mysql.com/read.php?44,373572,373572#msg-373572</link>
            <description><![CDATA[ hey,<br />
<br />
i have created a table called book_table<br />
<br />
mysql&gt; describe book_table;<br />
+-----------------+--------------+------+-----+---------+----------------+<br />
| Field           | Type         | Null | Key | Default | Extra          |<br />
+-----------------+--------------+------+-----+---------+----------------+<br />
| bookid          | int(15)      | NO   | PRI | NULL    | auto_increment |<br />
| book_type       | varchar(15)  | NO   |     | NULL    |                |<br />
| title           | varchar(100) | NO   |     | NULL    |                |<br />
| author          | varchar(70)  | NO   |     | NULL    |                |<br />
| type            | varchar(15)  | NO   |     | NULL    |                |<br />
| competency      | varchar(40)  | NO   |     | NULL    |                |<br />
| upload_link     | varchar(200) | YES  |     | NULL    |                |<br />
| owner           | varchar(40)  | NO   |     | NULL    |                |<br />
| status          | varchar(20)  | NO   |     | NULL    |                |<br />
| sl              | varchar(40)  | YES  |     | NULL    |                |<br />
| is_reissued     | varchar(3)   | YES  |     | NULL    |                |<br />
| issued_to_users | longtext     | NO   |     | NULL    |                |<br />
| review          | longtext     | NO   |     | NULL    |                |<br />
| details         | longtext     | NO   |     | NULL    |                |<br />
+-----------------+--------------+------+-----+---------+----------------+<br />
<br />
<br />
suppose for a perticular tuple the value in review field is as follows:<br />
<br />
<br />
&lt;reviews&gt;&lt;user&gt;&lt;user_name&gt;321654&lt;/user_name&gt;&lt;review&gt;This is a nice book.&lt;/review&gt;&lt;/user&gt;&lt;/reviews&gt;<br />
<br />
<br />
but for one book there can be many reviews from different user.<br />
<br />
so i want to insert one more tag at the end of the exiting user tag. It should look something like this.<br />
<br />
&lt;reviews&gt;&lt;user&gt;&lt;user_name&gt;321654&lt;/user_name&gt;&lt;review&gt;This is a nice book.&lt;/review&gt;&lt;/user&gt;&lt;user&gt;&lt;user_name&gt;654321&lt;/user_name&gt;&lt;review&gt;I didnt like this book.&lt;/review&gt;&lt;/user&gt;&lt;/reviews&gt;<br />
<br />
please can anybody tell me how to do this from a jsp page.<br />
i will be very grateful. thankyou.]]></description>
            <dc:creator>anmol agarwal</dc:creator>
            <category>XML</category>
            <pubDate>Sat, 26 Jun 2010 17:40:30 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?44,373184,373184#msg-373184</guid>
            <title>How to get xml output for a query (no replies)</title>
            <link>http://forums.mysql.com/read.php?44,373184,373184#msg-373184</link>
            <description><![CDATA[ How can we get output from a query as xml, I tried using --xml options but not able to use it.<br />
<br />
 I alos tried to use the query <br />
select Concat('&lt;row&gt;\n',<br />
  Concat(' &lt;id&gt;', id, '&lt;/id&gt;\n'),<br />
  Concat(' &lt;fname&gt;', fname, '&lt;/fname&gt;\n'),<br />
  '&lt;/row&gt;') as xmldoc from user;<br />
<br />
But the problem with this query is that the I don't get any root tag for the xml output. Please help<br />
<br />
<br />
Thanks<br />
 Amit Jhingran]]></description>
            <dc:creator>Amit Jhingran</dc:creator>
            <category>XML</category>
            <pubDate>Wed, 23 Jun 2010 19:43:34 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?44,366953,366953#msg-366953</guid>
            <title>XML Table Rows into MySQL (no replies)</title>
            <link>http://forums.mysql.com/read.php?44,366953,366953#msg-366953</link>
            <description><![CDATA[ I currently have an electronic form which produces user-inputted data as an XML file. Each field in the form marries up to a field in my MySQL DB. <br />
<br />
In my form, I have a table with multiple rows. The XML data looks as below:-<br />
<br />
- &lt;Table1&gt;<br />
- &lt;Row1&gt;<br />
  &lt;Cell1 xmlns:xfa=&quot;<a href="http://www.xfa.org/schema/xfa-data/1.0/&quot"  rel="nofollow">http://www.xfa.org/schema/xfa-data/1.0/&quot</a>; xfa:dataNode=&quot;dataGroup&quot; /&gt; <br />
  &lt;Cell3&gt;John Smith&lt;/Cell3&gt; <br />
  &lt;Cell4&gt;22&lt;/Cell4&gt; <br />
  &lt;Cell5&gt;New Yor&lt;/Cell5&gt; <br />
  &lt;Cell6&gt;America&lt;/Cell6&gt; <br />
  &lt;/Row1&gt;<br />
- &lt;Row1&gt;<br />
  &lt;Cell1 xmlns:xfa=&quot;<a href="http://www.xfa.org/schema/xfa-data/1.0/&quot"  rel="nofollow">http://www.xfa.org/schema/xfa-data/1.0/&quot</a>; xfa:dataNode=&quot;dataGroup&quot; /&gt; <br />
  &lt;Cell3&gt;Paul Jones&lt;/Cell3&gt; <br />
  &lt;Cell4&gt;35/Cell4&gt; <br />
  &lt;Cell5&gt;California&lt;/Cell5&gt; <br />
  &lt;Cell6&gt;America&lt;/Cell6&gt; <br />
  &lt;/Row1&gt;<br />
  &lt;/Table1&gt;<br />
<br />
The above example gives the XML output for 2 rows in the table in my form. As can be seen though, each row contains different information but the XML output references them both as Row1 (despite one row being Row 1 and the other Row 2).<br />
<br />
Any suggestions how I can import the above into MySql so that new entries are created in each table representing each respective row?]]></description>
            <dc:creator>Joe Bloggs</dc:creator>
            <category>XML</category>
            <pubDate>Mon, 10 May 2010 22:10:53 +0000</pubDate>
        </item>
    </channel>
</rss>
