Skip to content
This repository has been archived by the owner on Mar 31, 2024. It is now read-only.

Make the XML files more easy editable #15

Open
klacol opened this issue Oct 1, 2019 · 2 comments
Open

Make the XML files more easy editable #15

klacol opened this issue Oct 1, 2019 · 2 comments

Comments

@klacol
Copy link
Contributor

klacol commented Oct 1, 2019

It is great to have the docs here online, and to be able to bring in a requests for change (RFC) by making a pull request (PR).

Editing a markdown file (Documentation-md) is easy, e.g. this one:

https://github.com/buildingSMART/IFC/blob/master/Sections/Core%20data%20schemas/Schemas/IfcKernel/Entities/IfcSimplePropertyTemplate/Documentation.md

But editing a XML file (DocEntity.xml), that contains most of the article content requires some knowledge, e.g. like this:

https://github.com/buildingSMART/IFC/blob/master/Sections/Core%20data%20schemas/Schemas/IfcKernel/Entities/IfcSimplePropertyTemplate/DocEntity.xml

It would be good to find ways, to edit the DocEntity.xml - files more easily.

How are these files structured?

@jmirtsch
Copy link
Collaborator

jmirtsch commented Oct 1, 2019

Thanks for the question, it's a good point. At present the attributes are nested into xml files to preserve the order, and increase efficiency in terms of writing lots of files (at present, ifcdoc saves everything, not just what might have changed).

There's another side effect from the point you raise, Ifcdoc forces a UTF8 encoding, but this isn't (necessarily) preserved when editing the file directly on github, and will cause a "ghost" change next time the file is processed by ifcdoc.

We need to consider the best approach. The xml file is structured based on the datamodel within Ifcdoc to store the definition of IFC.. You can find this here: https://github.com/buildingSMART/IfcDoc/blob/development/SchemaDoc.cs

@klacol
Copy link
Contributor Author

klacol commented Oct 4, 2019

Ok, Jon, we could offer a very small piece of software, e.g. like a Notepad++ Plugin, that can open the XML files and offer a nice editing experience, e.g. like a markdown editor. Or we offer a plugin to another open editor, like Atom.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants