Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Head–body pattern
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{Short description|XML design pattern}} The '''head–body pattern''' is a common XML [[software design pattern|design pattern]], used for example in the [[SOAP]] protocol. This pattern is useful when a message, or parcel of data, requires considerable [[metadata]]. While mixing the meta-data with the data could be done it makes the whole confusing. In this pattern the meta-data or meta-information are structured as the header, sometimes known as the envelope. The ordinary data or information are structured as the body, sometimes known as the payload. [[XML]] is employed for both head and body (see also [[XML Protocol]]).<ref>{{Cite web |title=XML Design Patterns - Head-Body |url=http://www.xmlpatterns.com/HeadBodyMain.shtml |access-date=2024-02-10 |website=www.xmlpatterns.com}}</ref><ref>{{Cite web |last=Pearce |date=2007-06-07 |title=1. The eXstensible Markup Language (XML) |url=https://www.cs.sjsu.edu/~pearce/modules/lectures/web/xml/chp1.htm |access-date=2024-02-10 |website=www.cs.sjsu.edu |quote=We can use the Head-Body pattern to separate data from metadata...}}</ref> The pattern can be illustrated as: <syntaxhighlight lang="xml"> <head> <!--metadata--> </head> <body> <!--main content--> </body> </syntaxhighlight> ==References== {{Reflist}} {{DEFAULTSORT:Head-body pattern}} [[Category:XML]] [[Category:Software design patterns]] {{Compu-prog-stub}}
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)
Pages transcluded onto the current version of this page
(
help
)
:
Template:Cite web
(
edit
)
Template:Compu-prog-stub
(
edit
)
Template:Reflist
(
edit
)
Template:Short description
(
edit
)