Giter Club home page Giter Club logo

xsddiagram's People

Contributors

cleric-k avatar dgis avatar eduserna avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

xsddiagram's Issues

Multiple 'annotation.documentation' tag support in diagram

This is a following of #4. This issue is very minor ... and this is for being very pernickety.

Currently, only first documention tag is displayed in diagram (on v1.0), but annotation tag could contain more that one documentation with source|lang attributes.

For sample, if you are opening Maven schema, it explicit the problem.

This snippet represents the use case :

<xs:annotation>
  <xs:documentation source="version">1.0</xs:documentation>
  <xs:documentation xml:lang="fr" source="doc">Documentation française</xs:documentation>
  <xs:documentation xml:lang="en" source="doc">English documentation</xs:documentation>
  <xs:documentation>This feature is wonderful !</xs:documentation>
</xs:annotation>

Perhaps these attributes could be used for produce :

 1.0 (version)
 Documentation française (fr, doc)
 English documentation (en, doc)
 This feature is wonderful !

It is better to have the source at the end, because could a an URI so a little long text.

Refresh button

Hello

Thanks for this tool. Is it possible to add a refresh button when modifying the xsd currently displayed?

export schema to xml

Thank you very much for creating this program that has made my job much easier. It would be great if an .xml file could be generated with the complete schema or the selected branch, by double-clicking on it. In any case, the program is great.

Do not expand referenced elements

I just started using this program, and it has been really helpful as I try to simplify a ~4500 line XSD file.
However, what would be really nice, is if elements that use a link/reference would not expand when I press the Expand One Level button.

An example would be here:
image

The animations element uses the ref attribute in XSD (as <xs:element ref="animations"/>. As such, it will appear multiple times in the document. If there was a way to prevent it from expanding to show its children, that would be really helpful and then I would be able to more easily visualize a large document. Perhaps instead clicking on it would link to the correct node?

Clarify with which Windows version xsddiagram is compatible

Hello! Could you please clarify with which Windows version xsddiagram is compatible.
I cannot see any diagram on Windows 7 and Microsoft .NET Framework version 2.0 (x64) seems not suitable for Win7. Is there any raplacement for Microsoft .NET Framework version 2.0 ?

Does xsddiagram support proxy?

i do my jobs in company use proxy network.when i use xsddiagram,it appear a error like follow:

Cannot load the dependency: http://www.w3.org/2001/xml.xsd, error: System.Net.WebException: 远程服务器返回错误: (407) 需要代理身份验证。
在 System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request)
在 System.Net.WebClient.DownloadString(Uri address)
在 XSDDiagram.Schema.LoadSchemaFromUrl(String basePath, String url, String& loadedFilename, String& baseUrl)
Cannot load the dependency: http://www.w3.org/2001/javaee_web_services_client_1_4.xsd, error: System.Net.WebException: 远程服务器返回错误: (407) 需要代理身份验证。
在 System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request)
在 System.Net.WebClient.DownloadString(Uri address)
在 XSDDiagram.Schema.LoadSchemaFromUrl(String basePath, String url, String& loadedFilename, String& baseUrl)

so,
i want to know Does xsddiagram support proxy network?
or how can i set a config to make xsddiagram can use proxy network,tks!

case sensitivity badly used

When in a schema you define two elements with same name but not same case the last one is used in place of first one.
See attached exemple with elements a and A.
In xsddiagram, when showing content of element x we expect to see elements a and b.
Unfortunately we see elements A and b
Version of xsddiagram used is 1.1

capture

Content of my xsd:

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:element name="x">
xs:complexType
xs:sequence
<xs:element ref="a"/>
<xs:element ref="b"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="a">
xs:complexType
xs:sequence
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="b">
xs:complexType
xs:sequence
<xs:element ref="A"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="A">
xs:complexType
xs:sequence
<xs:element ref="c"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="c">
xs:complexType
xs:sequence
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>

Show attributes in generated image

Is it possible to use this tool to generate the attributes in the image?
For instance, to get the following effect:
image

I understand that the -a option works for textual outputs only...

Only root elements supported?

When using the tool to open the following schema, only the element shiporder is available for drawing.
Is there a particular reason for this limitation?
I've noticed that the tests always have top level elements, that are then referred to when needed.
I guess this is the work around this limitation, but I'm curious to know why.

<?xml version="1.0" encoding="UTF-8" ?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">

<xs:element name="shiporder">
  <xs:complexType>
    <xs:sequence>
      <xs:element name="orderperson" type="xs:string"/>
      <xs:element name="shipto">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="name" type="xs:string"/>
            <xs:element name="address" type="xs:string"/>
            <xs:element name="city" type="xs:string"/>
            <xs:element name="country" type="xs:string"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="item" maxOccurs="unbounded">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="title" type="xs:string"/>
            <xs:element name="note" type="xs:string" minOccurs="0"/>
            <xs:element name="quantity" type="xs:positiveInteger"/>
            <xs:element name="price" type="xs:decimal"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="orderid" type="xs:string" use="required"/>
  </xs:complexType>
</xs:element>

</xs:schema>

Thank you so much!

Feature request: option "expand all" or option "measure maximum depth"

During exporting to CSV/TXT (console), i would need to expand the entire XSD-s what i'm working with, but there is no such option. I could use -e 100 or something, but then XSD Diagram will try to expand the tree until it reaches 100 even if the tree is only 17 level deep; it simply will not stop at level 17 it will continue to 100.

Export SVG: Without page

Hello,

When I open a SVG (exported from xsddiagram) with Inkscape, Inkscape sees a empty page, and zooms on the empty page, so we don't see the diagam at the first time.
By zooming out, I see the diagram, so it's not a critical issue ;-) .

Here an example to test with Inkscape: aze.svg.zip

I'm on Debian Jessie, Inkscape 0.91, and xsddiagram 1.0-1 (from official Debian repo).

png/jpg generation failure

when trying to generate jpg/png for web-app_3_0.xsd (http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd) with all the elements expanded, following error is shown (output file is corrupted): "Parameter is not valid".

Please note that there are also the dependant files required to be downloaded (web-common_3_0.xsd, javaee_6.xsd, jsp_2_2.xsd and javaee_web_services_client_1_3.xsd)

However this works for svg generation without any problem.

My assumption is that this could be caused by the fact that the diagram generated is huge.

Visualization of Elements and attributes

When we want to view the "type" field on the right view (element tab), we must systematically modify the size of the view to see the end of the field that contains the namespace and the name of the element (the value is too big).

Is it possible to split this "type" field into 3: path type, namespace and element?

In addition, the size of the views displayed on the right is never kept each time you open XSD Diagram. Is it possible to have it kept?

Finally, it is always the "attribute" tab that appears at each start. For my use, this is the "element" tab that I use the most. Is it also possible to keep the last tab used at each startup?

Thank you for this great tool.

Visualization of types

We are using xsddiagram to support the development of CPACS. It would help us a lot if the element type was displayed around the elements.

Some proprietary software can do this (e.g., xmlspy, but I want to establish xsddiagram as a fast freeware alternative for schema visualization in the CPACS community.

Something wrong with traversing paths

Please check this URL:
http://eudravigilance.ema.europa.eu/XSD/multicacheschemas/MCCI_IN200100UV01.xsd

Below path looks incorrect:
http://eudravigilance.ema.europa.eu/XSD/coreschemas/MCCI_MT200100UV.xsd
It should be:
http://eudravigilance.ema.europa.eu/XSD/multicacheschemas/MCCI_MT200100UV.xsd

Error msg:
"Cannot load the dependency: http://eudravigilance.ema.europa.eu/XSD/coreschemas/MCCI_MT200100UV.xsd, error: System.Net.WebException: Remote server error code: (404) Not found.
w System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request)
w System.Net.WebClient.DownloadString(Uri address)
w XSDDiagram.Schema.LoadSchemaFromUrl(String basePath, String url, String& loadedFilename, String& baseUrl)"

XML Schema 1.1 not supported

I get following error report when I try to open the schema below:

Unknown node (8, 21): vc:minVersion
Unknown attribute (8, 21): vc:minVersion
Unknown node (24, 4): xs:alternative
Unknown element (24, 4): xs:alternative
Unknown node (25, 4): xs:alternative
Unknown element (25, 4): xs:alternative

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns="test"
	xmlns:xs="http://www.w3.org/2001/XMLSchema"
	targetNamespace="test"
	elementFormDefault="qualified"
	attributeFormDefault="unqualified"
	xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
	vc:minVersion="1.1"
	>
	<xs:complexType name="myType_v1">
		<xs:sequence>
			<xs:element name="description" type="xs:string"/>
		</xs:sequence>
		<xs:attribute name="version" type="xs:integer" use="required" fixed="1"/>
	</xs:complexType>
	<xs:complexType name="myType_v2">
		<xs:sequence>
			<xs:element name="new_description" type="xs:string"/>
		</xs:sequence>
		<xs:attribute name="version" type="xs:integer" use="required" fixed="2"/>
	</xs:complexType>
	<xs:element name="root">
		<xs:alternative test="@version=1" type="myType_v1"/>
		<xs:alternative test="@version=2" type="myType_v2"/>
	</xs:element>
</xs:schema>

Document library dependencies on GNU/Linux (mono)

When first running XSD Diagram on Ubuntu (12.04.5) it raised an unhandled exception:

Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies.
File name: 'System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
[ERROR] FATAL UNHANDLED EXCEPTION: System.IO.FileNotFoundException: Could not load file or assembly 'System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies.
File name: 'System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'

This was because I hadn't installed libmono-winforms2.0-cil. Installing that library fixed it.

Please could you add a list of dependencies in the ReadMe or elsewhere?

It might also be helpful to catch that exception and explain to the user what's the problem is.


Also (perhaps unrelated to feel free to ignore/move), I get this error:

libgluezilla not found. To have webbrowser support, you need libgluezilla installed

even though I've installed libmono-webbrowser2.0-cil, which claims to contain "the implementation of the WebControl class based on the Mozilla engine using libgluezilla for CLI 2.0".

could't open xsd file

I'm using xsddiagram from debian 7.4 stable distribution.
When I try to open xsd file, I get the following error message:

"There is an error in XML document.
Read by order only possible for encoded/bare format".

I try to get some verbosity by invoking xsddiagram form from the command line like this:

$ xsddiagram  CFEType_v1.27.xsd

but gui application starts instead and same message came out.

Note: xsddiagram windows version 0.16 doesn't fail despite running on wine.

The xsd file and its deps could be found at
http://www.efacturauy.com/xsd_dgi/html/CFEType_v1.27.html
http://www.efacturauy.com/xsd_dgi/default.html
If you prefer I can post the raw xml file here.

Greetings

xsd types in image

Enhancement:
I would like to see the attibute name and the attribute type for each element in the image.

'annotation.documentation' tag in diagram

Hi,

XSD Diagram is currently the best free XSD viewer I found (easy to use, works fine with choice in a sequence tag, ...).

Is there a way to add the "annotation.description" tag in diagram view ? This is very useful when we present the schema as a picture.

Thanks in advance.
Best regards.

Create barebones XSD from loaded data

It would be nice to be able to create barebones xsd files from the tags loaded in the workspace.
I work with Java-class defining XSD where the tags are polluted and dispersed and look like this :

<xs:complexType name="Foo">
    <xs:annotation>
        <xs:documentation></xs:documentation>
    </xs:annotation>
    <xs:sequence>
        <xs:element name="Bar" type="Bar" minOccurs="1" maxOccurs="10">
        <xs:annotation>
            <xs:documentation></xs:documentation>
        </xs:annotation>
        </xs:element>
    </xs:sequence>
    <xs:attribute name="schemaVersion" use="required" fixed="1.0"/>
</xs:complexType>

And I would like to generate an XSD file that looks like this:

<Foo>
    <Bar>
    </Bar>
</Foo>

Thank you

'%20' in URL of imported XML schemas gives an error

I have some XSD-files in which a %20 character is used to represent the space character. This prevents the xsd to be fully loaded.

For example:
<xsd:import namespace="http://www.example.com" schemaLocation="../../Common%20Services/services/xsd/common.xsd"/>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.