Is there XML editor, organized like form view, according DTD ?
Is there XML editor, organized like form view, according DTD ?
(or else XML scheme)
I want to enter XML data,
but not in pure XML,
or in arbitrary XML in form view like in Microsoft XML notepad,
but to enter data by form fields according DTD.
Is there such a good thing?
thanks.
[298 byte] By [
vgrigor] at [2007-12-17]
Sorry you did not mentioned DTD or else schema,
accrding with datagrid must be a form for XML nodes,
or sets of nodes,
I need not arbitrary editor, but defined by DTD,
point to whwere this is used.
after this,
If possible, also, provide reference to some code.
I want now just some functionality:
that editor provided sub-fields defined in XSD,
and from the left the next root node of which sub-nodes or
atributes is edited.
Is it inadequite for task of editing XML with defined schema,
to be common task of applying XSD ?
_
Or no one invented it, and I must easily write it myself for some days ?
There is something like this in the XML editor in Visual Studio 2005 called "code snippets" such that when you have a DTD or XSD schema associated with your XML document and you type the beginning of a new tag:
<
book>|</book>
Then type TAB you get a schema generated snippet where you can tab through the green fields to fill in the details.
<
book id="int">
<title>string</title>
<author>string</author>
<price>string</price>
<publisher>string</publisher>
</book>
This obviously saves a lot of typing. See http://msdn.microsoft.com/library/en-us/dnxmlnet/html/xmltools.asp for more details.
It sounds like you want a grid view Forms based version of this sort of thing.
Yes, I want grid form that shows fields,
that is being shown according XSD,
and thus once entered with data
can not produce errors, except number-text conversions.
row XML - is good percepted thing,
muffled one, if considered really,
not in smalles sizes and structures,
it is much better to work with applied entities,
not thinking about formats, studio editors,
Easy and adequate and structured view,
that simple reflect XSD to XML evident relation-
is desired thing.
Sounds like the XML Data Editor in VS, when i load this XML into it:
<
BookStore xmlns="http://www.books.org">
<Book>
<Title>Where is the daily bread?</Title>
<Author>Jimmy Jones</Author>
<Date>1998-05-03</Date>
<ISBN>1-90009-555-6</ISBN>
<Publisher>Foo Publishing</Publisher>
</Book>
<Book>
<Title>Programming</Title>
<Author>Bill Bob</Author>
<Author>Joe Jam</Author>
<Date>2003-05-09</Date>
<ISBN>9-99999-999-9</ISBN>
<TOC ChapterCount="2">
<Preface StartPage="1" PageCount="2"></Preface>
<Chapter StartPage="3" PageCount="16">Basics</Chapter>
<Chapter StartPage="20" PageCount="15">Advanced</Chapter>
<Appendix StartPage="36" PageCount="10"></Appendix>
</TOC>
<Publisher>Prog Publishing</Publisher>
</Book>I get this kind of grid based UI:
http://clovett.slide.com/c/XML+Data+Editor/3245550
Yes, it looks what is need,
with only collection of nodes must be kept.
As well as collection of collections
i.e. using some tree-view instead of list -view.