XsdToStruct.get_field_indices_of_type
— Methodget_field_indices_of_type(
+julia> generate_modules(xsd_locations, xsd_modules_path)
diff --git a/XsdToStruct.jl/dev/.documenter-siteinfo.json b/XsdToStruct.jl/dev/.documenter-siteinfo.json
index 9180635..b10b9ff 100644
--- a/XsdToStruct.jl/dev/.documenter-siteinfo.json
+++ b/XsdToStruct.jl/dev/.documenter-siteinfo.json
@@ -1 +1 @@
-{"documenter":{"julia_version":"1.10.4","generation_timestamp":"2024-07-19T20:25:04","documenter_version":"1.5.0"}}
\ No newline at end of file
+{"documenter":{"julia_version":"1.10.4","generation_timestamp":"2024-07-19T20:30:00","documenter_version":"1.5.0"}}
\ No newline at end of file
diff --git a/XsdToStruct.jl/dev/docstrings/index.html b/XsdToStruct.jl/dev/docstrings/index.html
index ff51179..203ec86 100644
--- a/XsdToStruct.jl/dev/docstrings/index.html
+++ b/XsdToStruct.jl/dev/docstrings/index.html
@@ -7,27 +7,27 @@
"remote_file" => "https://url.to.last/xsd/file"
)
julia> xsd_modules_path = joinpath("output", "path", "for", "xsd", "modules")
-julia> generate_modules(xsd_locations, xsd_modules_path)source Find indices for all elements in the fields attribute of the given node which are of the given FieldData type. Note that this does not include the child fields in the case of a ComplexTreeNode. Find indices for all elements in the fields attribute of the given node which are of the given FieldData type. Note that this does not include the child fields in the case of a ComplexTreeNode. Extract child node from xsd element with a type defined inside the element Extract child node from xsd element with a type defined inside the element Return the qualified type name for the given field_data relative to the namespace defined by the xsd. Hence if any leading xsd namespace part is present in the qualified type name it will be removed. Return the qualified type name for the given field_data relative to the namespace defined by the xsd. Hence if any leading xsd namespace part is present in the qualified type name it will be removed. Return the qualified type name for the given field_data as read from the xsd. This will include the xsd namespace explicitly if it was given in the xsd. If the qualified name relative to the xsd namespace is needed add the xsd namespace as a string as the second argument. An Xsd group does not really have a qualified name, hence just the name is returned Returns types which need to be defined in order for the struct definition of 'complex_node' to be valid. Generate Julia module corresponding to the given xsd file. The resulting Julia module will be placed in the given Examples Return the qualified type name for the given field_data as read from the xsd. This will include the xsd namespace explicitly if it was given in the xsd. If the qualified name relative to the xsd namespace is needed add the xsd namespace as a string as the second argument. An Xsd group does not really have a qualified name, hence just the name is returned Returns types which need to be defined in order for the struct definition of 'complex_node' to be valid. Generate Julia module corresponding to the given xsd file. The resulting Julia module will be placed in the given Examples or Generate Julia module corresponding to the given xsd file. The resulting Julia module will be placed in the same directory as the given xsd file. The path to the file with the generated code is given as a return value. Examples Generate Julia module corresponding to the given xsd file. The resulting Julia module will be placed in the same directory as the given xsd file. The path to the file with the generated code is given as a return value. Examples orXsdToStruct.get_field_indices_of_type
— Methodget_field_indices_of_type(
+julia> generate_modules(xsd_locations, xsd_modules_path)
XsdToStruct.get_field_indices_of_type
— Methodget_field_indices_of_type(
node::Union{ComplexTreeNode, SchemaTreeNode},
::Type{T}
-) where T <: AbstractFieldData
XsdToStruct.parse_xsd_element_child
— Methodparse_xsd_element_child(
+) where T <: AbstractFieldData
XsdToStruct.parse_xsd_element_child
— Methodparse_xsd_element_child(
xsd_element::XMLElement,
parent_name::AbstractString
-)::Tuple{FieldData, AbstractTreeNode}
XsdToStruct.qualified_type
— Methodqualified_type(
+)::Tuple{FieldData, AbstractTreeNode}
XsdToStruct.qualified_type
— Methodqualified_type(
field_data::Union{FieldData, ChoiceFieldData},
xsd_namespace::AbstractString
-)::String
XsdToStruct.qualified_type
— Methodqualified_type(
+)::String
XsdToStruct.qualified_type
— Methodqualified_type(
field_data::Union{FieldData, ChoiceFieldData}
-)::String
XsdToStruct.qualified_type
— Methodqualified_type(field_data::GroupFieldData)::String
XsdToStruct.required_julia_types
— Methodrequired_julia_types(complex_node::ComplexTreeNode)::Vector{String}
XsdToStruct.xsd_to_struct_module
— Methodxsd_to_struct_module(xsd_path::AbstractString, output_dir::AbstractString)::String
output_dir
. The module generated will have the same name as the xsd namespace defined in the given xsd file. The path to the file with the generated code is given as a return value. The file generated will have the approximately the same name as the given xsd file but with a ".jl" extension instead of ".xsd". To use the generated module include the generated file that is returned by this function, and then use or import the module.julia> using XsdToStruct
+)::String
XsdToStruct.qualified_type
— Methodqualified_type(field_data::GroupFieldData)::String
XsdToStruct.required_julia_types
— Methodrequired_julia_types(complex_node::ComplexTreeNode)::Vector{String}
XsdToStruct.xsd_to_struct_module
— Methodxsd_to_struct_module(xsd_path::AbstractString, output_dir::AbstractString)::String
output_dir
. The module generated will have the same name as the xsd namespace defined in the given xsd file. The path to the file with the generated code is given as a return value. The file generated will have the approximately the same name as the given xsd file but with a ".jl" extension instead of ".xsd". To use the generated module include the generated file that is returned by this function, and then use or import the module.julia> using XsdToStruct
julia> xsd_to_struct_module(joinpath("path", "to", "file.xsd"), joinpath("output", "dir"))
julia> include(joinpath("output", "dir", "file", "file.jl"))
julia> using file_xsd_namespace
julia> using XsdToStruct
julia> xsd_to_struct_module(joinpath("path", "to", "file.xsd"), joinpath("output", "dir"))
julia> include(joinpath("output", "dir", "file", "file.jl"))
-julia> import file_xsd_namespace
XsdToStruct.xsd_to_struct_module
— Methodxsd_to_struct_module(xsd_path::AbstractString)::String
julia> using XsdToStruct
+julia> import file_xsd_namespace
XsdToStruct.xsd_to_struct_module
— Methodxsd_to_struct_module(xsd_path::AbstractString)::String
julia> using XsdToStruct
julia> xsd_to_struct_module(joinpath("path", "to", "file.xsd"))
julia> include(joinpath("path", "to", "file", "file.jl"))
julia> using file_xsd_namespace
julia> using XsdToStruct
julia> xsd_to_struct_module(joinpath("path", "to", "file.xsd"))
julia> include(joinpath("path", "to", "file", "file.jl"))
-julia> import file_xsd_namespace
Settings
This document was generated with Documenter.jl version 1.5.0 on Friday 19 July 2024. Using Julia version 1.10.4.