Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow <Include>ing of xml with root different from <Lems> #12

Closed
pgleeson opened this issue Nov 27, 2012 · 1 comment
Closed

Allow <Include>ing of xml with root different from <Lems> #12

pgleeson opened this issue Nov 27, 2012 · 1 comment

Comments

@pgleeson
Copy link
Member

A statement like:

should allow a file with root to be included, the root ignored, and everything inside treated as normal lems components.

This simple extension should allow any type of xml to be imported and using 'root' makes it clear that it's just the top level element that should be ignored (an error can be thrown if the root is different). In future some more complex XPath/XInclude based expression could be used to pick out the appropriate element, but this should not be needed for now.

@robertcannon
Copy link
Member

I've made it simpler - it just disregards the enclosing type of what you ask it to include. It means users might do silly things, but I doubt it will be much of a problem.

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

No branches or pull requests

2 participants