Skip to content

types href include problem #2

@ghorn

Description

@ghorn

When you do a structs/types href include, you can't include a file with class as it's outermost xml construct.
My work around is putting the around the href include, where the included file's outermost xml construct is "protocol"

this works:

<!-- file: types.xml -->
<?xml version="1.0"?>
<!DOCTYPE protocol SYSTEM "types.dtd">
<protocol>
    <include href="types/included_types.xml"/>
</protocol>

<!-- file: types/included_types.xml -->
<class name="included_class">
    blah blah blah messages here
</class>

this fails:

<!-- file: types.xml -->
<?xml version="1.0"?>
<!DOCTYPE protocol SYSTEM "types.dtd">
<protocol>
    <class name="included_class">
        <include href="types/included_types.xml"/>
    </class>
</protocol>

<!-- file: types/included_types.xml -->
<protocol">
    blah blah blah messages here
</protcol>

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions