Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XML
|
XML General XML discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XML section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 18th, 2006, 08:19 AM
Friend of Wrox
 
Join Date: May 2005
Posts: 140
Thanks: 0
Thanked 0 Times in 0 Posts
Default Quotation

Hallo all,

I have a simple question. I have designed a migration tool in PHP which reads the data from a CSV data and writes it into a file as XML. So I don't have any problems with the process but I have defined the quotations like ' ' I mean like

<duties xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:noNamespaceSchemaLocation='wuc.xsd'/> instead of

<duties xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="wuc.xsd"/>

Does it cause a big problem?



Your attitude determines your altitude
__________________
Your attitude determines your altitude
 
Old July 18th, 2006, 08:55 AM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

What makes you think this would be a problem? Both kinds of quotes can be used in XML, it's your choice.

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
 
Old July 18th, 2006, 09:31 AM
Friend of Wrox
 
Join Date: May 2005
Posts: 140
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hallo Michael

I just wanted to be sure. I knew that too that it supports both of them but I was a bit anxious if I were wrong. Thanks for your reply.

Your attitude determines your altitude
 
Old July 19th, 2006, 03:18 AM
Friend of Wrox
 
Join Date: May 2005
Posts: 140
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hallo Michael,

I have another question. Where can I find the list of special caharacters which have to be converted suitably to be included in an XML file such as & | etc?

For example if I write
<company>Procter & Gamble</company>

it is not a valid XML entry because of this "&" character.

Your attitude determines your altitude
 
Old July 19th, 2006, 09:53 AM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

Unfortunately I do seem to be almost the only person answering questions on this list, which is rather unsatisfactory: but all the same, it's a public forum, so please don't address questions specifically to one person.

You can find the rules at

http://www.w3.org/TR/REC-xml/#syntax



Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
 
Old July 19th, 2006, 10:00 AM
Friend of Wrox
 
Join Date: May 2005
Posts: 140
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Sorry Michael but you were the only person in XML/XSLT forums who has answered my questions.:D Thanks for your help.

Your attitude determines your altitude





Similar Threads
Thread Thread Starter Forum Replies Last Post
apostrophes or quotation marks crmpicco Javascript 6 March 21st, 2006 09:01 AM
display quotation mark in ASP angelran Classic ASP Basics 2 October 31st, 2005 08:03 AM
please help to develop this quotation prog mjuliao Access 18 August 29th, 2005 10:28 PM
str_replace for quotation mark starsol Beginning PHP 4 August 21st, 2003 11:25 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.