473,490 Members | 2,737 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

XML file within an XML element

1 New Member
Hi,

We have an XML file where an element starts with child XML.When I try to view schema in XML SPY I am getting an error as below.

Character X is grammatically unexpected

Reason : One of the following is expected--PI Target

Details: XML Production : Production PI is not satisfied

XML file Structure
------------------
Expand|Select|Wrap|Line Numbers
  1. <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  2. Element 1
  3. Element 2
  4. Element 3
  5. <Repeat Element>
  6. <?xml version="1.0" encoding="UTF-8"?>
  7. Repeat Element1
  8. Repeat Element2
  9. </Repeat Element>
  10. Element 1
  11. Element 2
  12. Element 3
  13. <Repeat Element>
  14. <?xml version="1.0" encoding="UTF-8"?>
  15. Repeat Element1
  16. Repeat Element2 
  17. </Repeat Element> and son
Kindly let me know the fix to view the schema in XML spy

Thanks
Mayur
Feb 20 '13 #1
1 2757
Dormilich
8,658 Recognized Expert Moderator Expert
for starters, there can be only one xml processing instruction (<?xml) and you need a single root element.
Feb 20 '13 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
3603
by: JavaDeveloper | last post by:
Is it possible to reference another XSD file within an XSD file? What I'd like to do is have a fairly static XSD file which contains an element whose valid values change often reference a 2nd XSD...
10
3994
by: $kr1p7_k177y | last post by:
-Without using frames. -- .............................................................................. Chase after truth like hell and you'll free yourself, even though you never touch...
5
2473
by: Victor | last post by:
Hi I need to open an html file from the file system and embed that html file within my main aspx form. I have 2 questions: 1) How do I open the html file? I tried the File.open(Path, mode) didnt...
2
7233
by: Jim Witte | last post by:
Hi, How do I set a file input element? If it's a text input, I can set the value property. But this doesn't work with file inputs. And no, I can't change it - I'm writing a script to...
2
1698
by: Rosa | last post by:
Hi, I'm looking for an elegant solution on how to find the youngest file within a given directory. At the moment I'm storing all files in an array and loop through it comparing the creation date...
2
2073
by: Jon Pope | last post by:
Is it possible to view the contents of a CHM file within IE? I've attempted to do this by right-clicking on a CHM file then selecting "Open With..." and finally selecting "IE", but nothing...
2
6452
by: Fred Flintstone | last post by:
Why not? Why can't I put a table within paragraph tags? Also: "Element DIV cannot be nested within element 'u'." I can't underline something within div tags? Why not? Thanks! :)
4
2044
by: rn5a | last post by:
I am storing the physical path of images, along with 3 more columns, in a MS-Access DB table. I want to provide users the option to change this physical image path (as well as the records in the...
1
2439
by: bsonline | last post by:
I have to modify a .java file in a project. But I dont have any editor to compile java. I use putty to connect server(Solaris). And using putty console I modify .java file and save it. Then I down...
1
1541
by: Sharad Singh | last post by:
I am new to Javascript/AJAX. I need to upload a file to a server using a file input element(using the 'onchange' event). I need to write a javascript/ajax code for the same. I would be very...
0
7112
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6974
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7183
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6852
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5448
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4878
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4573
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1389
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
628
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.