Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
<?xml version="1.0"?>
<grammar
    xmlns="http://relaxng.org/ns/structure/1.0"
    datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"
    >

    <start>
        <element name="root">
            <element name="defaultFactory">
                <text/>
            </element>

            <zeroOrMore>
                <element name="service">
                    <attribute name="key"/>

                    <element name="name">
                        <text/>
                    </element>

                    <element name="serviceClass">
                        <text/>
                    </element>

                    <optional>
                        <element name="factory">
                            <text/>
                        </element>
                    </optional>

                    <interleave>
                        <optional>
                            <element name="namespace">
                                <text/>
                            </element>
                        </optional>

                        <optional>
                            <element name="encodingStyleURI">
                                <text/>
                            </element>
                        </optional>

                        <optional>
                            <element name="use">
                                <choice>
                                    <value>encoded</value>
                                    <value>literal</value>
                                </choice>
                            </element>
                        </optional>

                        <optional>
                            <element name="style">
                                <choice>
                                    <value>document</value>
                                    <value>rpc</value>
                                    <value>wrapped</value>
                                    <value>message</value>
                                </choice>
                            </element>
                        </optional>

                        <optional>
                            <element name="soapVersion">
                                <choice>
                                    <value>1.1</value>
                                    <value>1.2</value>
                                </choice>
                            </element>
                        </optional>

                        <zeroOrMore>
                            <element name="property">
                                <attribute name="name"/>
                                <attribute name="value"/>
                            </element>
                        </zeroOrMore>
                    </interleave>
                </element>
            </zeroOrMore>
        </element>
    </start>
</grammar>
New to GrepCode? Check out our FAQ X