Specifications > MRR > File Specification

P4 File Version 3

Email Comments

 

The P4 file is an XML file format with Session and MRR Events sections and an XSD that defines the file format requirements. The Session contains the File Name, which acts as the key to identify the unique set of records contained within the file. The Session section also contains metadata about when the file was created, for which MRR project, and for what purpose. The MRR Events section contains one record for each PIT tag Mark, Recapture or Recovery contained within the file.

 

Version 3 of the P4 file was implemented with the release of P4 version 1.15 released in May 2017. Data field definitions, domains, and requirements can be found in the MRR Data Specification section.

 

P4MRR

Schema P4MRR.xsd


schema location https://www.ptagis.org/content/schemas/mrr/P4v3/P4MRR%20v3.xsd
attributeFormDefault unqualified
elementFormDefault qualified
 
Elements 
PTAGISData 


element PTAGISData
diagram P4MRR_p1.png
properties
content complex

element PTAGISData/Session
diagram P4MRR_p2.png
properties
content complex

element PTAGISData/Session/FileVersion
diagram P4MRR_p3.png
type restriction of xsd:string
properties
content simple
facets
Kind Value Annotation
minLength 1
maxLength 25

element PTAGISData/Session/SourceSystemName
diagram P4MRR_p4.png
type restriction of xsd:string
properties
content simple
facets
Kind Value Annotation
minLength 1
maxLength 25

element PTAGISData/Session/SourceSystemVersion
diagram P4MRR_p5.png
type restriction of xsd:string
properties
content simple
facets
Kind Value Annotation
minLength 1
maxLength 25

element PTAGISData/Session/Name
diagram P4MRR_p6.png
type restriction of xsd:string
properties
content simple
facets
Kind Value Annotation
minLength 1
maxLength 50

element PTAGISData/Session/FileName
diagram P4MRR_p7.png
type restriction of xsd:string
properties
content simple
facets
Kind Value Annotation
minLength 18
maxLength 20
pattern ([A-Za-z0-9]{3}|[0-9]{3})(-[0-9]{4})(-[0-9]{3})(-[A-Za-z0-9]{1,3})(.[xX])([mM])([lL])

element PTAGISData/Session/LegacyFileName
diagram P4MRR_p8.png
type restriction of xsd:string
properties
minOcc 0
maxOcc 1
content simple
nillable true
facets
Kind Value Annotation
maxLength 50

element PTAGISData/Session/Created
diagram P4MRR_p9.png
type restriction of xsd:string
properties
content simple
facets
Kind Value Annotation
maxLength 25
pattern ([1-2][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])T([0-2][0-9]):([0-5][0-9]):([0-5][0-9])([-+])(0[0-9]):(00)

element PTAGISData/Session/Modified
diagram P4MRR_p10.png
type restriction of xsd:string
properties
content simple
facets
Kind Value Annotation
maxLength 25
pattern ([1-2][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])T([0-2][0-9]):([0-5][0-9]):([0-5][0-9])([-+])(0[0-9]):(00)

element PTAGISData/Session/SessionMessage
diagram P4MRR_p11.png
type restriction of xsd:string
properties
content simple
facets
Kind Value Annotation
minLength 1
maxLength 200

element PTAGISData/Session/MRRProject
diagram P4MRR_p12.png
type restriction of xsd:string
properties
content simple
facets
Kind Value Annotation
minLength 3
maxLength 3

element PTAGISData/Session/SessionNote
diagram P4MRR_p13.png
type restriction of xsd:string
properties
minOcc 0
maxOcc 1
content simple
nillable true
facets
Kind Value Annotation
maxLength 4000

element PTAGISData/Session/SPDV1
diagram P4MRR_p14.png
type restriction of xsd:string
properties
minOcc 0
maxOcc 1
content simple
nillable true
facets
Kind Value Annotation
maxLength 50

element PTAGISData/Session/SPDV2
diagram P4MRR_p15.png
type restriction of xsd:string
properties
minOcc 0
maxOcc 1
content simple
nillable true
facets
Kind Value Annotation
maxLength 50

element PTAGISData/Session/SPDV3
diagram P4MRR_p16.png
type restriction of xsd:string
properties
minOcc 0
maxOcc 1
content simple
nillable true
facets
Kind Value Annotation
maxLength 50

element PTAGISData/Session/SPDV4
diagram P4MRR_p17.png
type restriction of xsd:string
properties
minOcc 0
maxOcc 1
content simple
nillable true
facets
Kind Value Annotation
maxLength 50

element PTAGISData/Session/SPDV5
diagram P4MRR_p18.png
type restriction of xsd:string
properties
minOcc 0
maxOcc 1
content simple
nillable true
facets
Kind Value Annotation
maxLength 50

element PTAGISData/Session/SPDV6
diagram P4MRR_p19.png
type restriction of xsd:string
properties
minOcc 0
maxOcc 1
content simple
nillable true
facets
Kind Value Annotation
maxLength 50

element PTAGISData/Session/SPDV7
diagram P4MRR_p20.png
type restriction of xsd:string
properties
minOcc 0
maxOcc 1
content simple
nillable true
facets
Kind Value Annotation
maxLength 50

element PTAGISData/Session/SPDV8
diagram P4MRR_p21.png
type restriction of xsd:string
properties
minOcc 0
maxOcc 1
content simple
nillable true
facets
Kind Value Annotation
maxLength 50

element PTAGISData/Session/SPDV9
diagram P4MRR_p22.png
type restriction of xsd:string
properties
minOcc 0
maxOcc 1
content simple
nillable true
facets
Kind Value Annotation
maxLength 50

element PTAGISData/Session/SPDV10
diagram P4MRR_p23.png
type restriction of xsd:string
properties
minOcc 0
maxOcc 1
content simple
nillable true
facets
Kind Value Annotation
maxLength 50

element PTAGISData/Session/MRREvents
diagram P4MRR_p24.png
properties
minOcc 0
maxOcc 1
content complex

element PTAGISData/Session/MRREvents/MRREvent
diagram P4MRR_p25.png
properties
minOcc 1
maxOcc unbounded
content complex

element PTAGISData/Session/MRREvents/MRREvent/BroodYear
diagram P4MRR_p26.png
type restriction of xsd:string
properties
minOcc 0
maxOcc 1
content simple
nillable true
facets
Kind Value Annotation
maxLength 4

element PTAGISData/Session/MRREvents/MRREvent/CaptureMethod
diagram P4MRR_p27.png
type restriction of xsd:string
properties
minOcc 0
maxOcc 1
content simple
nillable true
facets
Kind Value Annotation
minLength 3
maxLength 8

element PTAGISData/Session/MRREvents/MRREvent/ConditionalComments
diagram P4MRR_p28.png
type restriction of xsd:string
properties
minOcc 0
maxOcc 1
content simple
nillable true
facets
Kind Value Annotation
maxLength 50

element PTAGISData/Session/MRREvents/MRREvent/DetailNote
diagram P4MRR_p29.png
type restriction of xsd:string
properties
minOcc 0
maxOcc 1
content simple
nillable true
facets
Kind Value Annotation
maxLength 200

element PTAGISData/Session/MRREvents/MRREvent/EventDate
diagram P4MRR_p30.png
type restriction of xsd:string
properties
minOcc 0
maxOcc 1
content simple
nillable true
facets
Kind Value Annotation
minLength 0
maxLength 25
pattern |(([1-2][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])T([0-2][0-9]):([0-5][0-9]):([0-5][0-9])([-+])(0[0-9]):(00))

element PTAGISData/Session/MRREvents/MRREvent/EventSite
diagram P4MRR_p31.png
type restriction of xsd:string
properties
minOcc 0
maxOcc 1
content simple
nillable true
facets
Kind Value Annotation
minLength 3
maxLength 6

element PTAGISData/Session/MRREvents/MRREvent/EventType
diagram P4MRR_p32.png
type restriction of xsd:string
properties
content simple
facets
Kind Value Annotation
minLength 4
maxLength 20
enumeration Mark
enumeration Recapture
enumeration Recovery
enumeration Passive Recapture
enumeration Tally

element PTAGISData/Session/MRREvents/MRREvent/Hatchery
diagram P4MRR_p33.png
type restriction of xsd:string
properties
minOcc 0
maxOcc 1
content simple
nillable true
facets
Kind Value Annotation
maxLength 4

element PTAGISData/Session/MRREvents/MRREvent/HoldingTemperature
diagram P4MRR_p34.png
type xsd:decimal
properties
minOcc 0
maxOcc 1
content simple
nillable true

element PTAGISData/Session/MRREvents/MRREvent/Length
diagram P4MRR_p35.png
type xsd:int
properties
minOcc 0
maxOcc 1
content simple
nillable true

element PTAGISData/Session/MRREvents/MRREvent/LifeStage
diagram P4MRR_p36.png
type restriction of xsd:string
properties
minOcc 0
maxOcc 1
content simple
nillable true
facets
Kind Value Annotation
maxLength 20
enumeration Adult
enumeration Juvenile
enumeration Unknown
enumeration 

element PTAGISData/Session/MRREvents/MRREvent/LocationSource
diagram P4MRR_p37.png
type restriction of xsd:string
properties
minOcc 0
maxOcc 1
content simple
nillable true
facets
Kind Value Annotation
maxLength 3

element PTAGISData/Session/MRREvents/MRREvent/LocationLatitude
diagram P4MRR_p38.png
type xsd:decimal
properties
minOcc 0
maxOcc 1
content simple
nillable true

element PTAGISData/Session/MRREvents/MRREvent/LocationLongitude
diagram P4MRR_p39.png
type xsd:decimal
properties
minOcc 0
maxOcc 1
content simple
nillable true

element PTAGISData/Session/MRREvents/MRREvent/LocationRKMExt
diagram P4MRR_p40.png
type xsd:int
properties
minOcc 0
maxOcc 1
content simple
nillable true

element PTAGISData/Session/MRREvents/MRREvent/MarkMethod
diagram P4MRR_p41.png
type restriction of xsd:string
properties
minOcc 0
maxOcc 1
content simple
nillable true
facets
Kind Value Annotation
maxLength 10

element PTAGISData/Session/MRREvents/MRREvent/MarkTemperature
diagram P4MRR_p42.png
type xsd:decimal
properties
minOcc 0
maxOcc 1
content simple
nillable true

element PTAGISData/Session/MRREvents/MRREvent/MigrationYear
diagram P4MRR_p43.png
type restriction of xsd:string
properties
minOcc 0
maxOcc 1
content simple
nillable true
facets
Kind Value Annotation
maxLength 4

element PTAGISData/Session/MRREvents/MRREvent/Organization
diagram P4MRR_p44.png
type restriction of xsd:string
properties
minOcc 0
maxOcc 1
content simple
nillable true
facets
Kind Value Annotation
minLength 3
maxLength 6

element PTAGISData/Session/MRREvents/MRREvent/PITTag
diagram P4MRR_p45.png
type restriction of xsd:string
properties
content simple
facets
Kind Value Annotation
minLength 10
maxLength 15
pattern ([A-Z0-9]{10})|(([A-Z0-9]{3})(.[A-Z0-9]{10}))|([.][.][.][.][.][.][.][.][.][.])

element PTAGISData/Session/MRREvents/MRREvent/Raceway
diagram P4MRR_p46.png
type restriction of xsd:string
properties
minOcc 0
maxOcc 1
content simple
nillable true
facets
Kind Value Annotation
maxLength 30

element PTAGISData/Session/MRREvents/MRREvent/ReleaseDate
diagram P4MRR_p47.png
type restriction of xsd:string
properties
minOcc 0
maxOcc 1
content simple
nillable true
facets
Kind Value Annotation
maxLength 25
pattern |(([1-2][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])T([0-2][0-9]):([0-5][0-9]):([0-5][0-9])([-+])(0[0-9]):(00))

element PTAGISData/Session/MRREvents/MRREvent/ReleaseSite
diagram P4MRR_p48.png
type restriction of xsd:string
properties
minOcc 0
maxOcc 1
content simple
nillable true
facets
Kind Value Annotation
maxLength 6

element PTAGISData/Session/MRREvents/MRREvent/ReleaseTemperature
diagram P4MRR_p49.png
type xsd:decimal
properties
minOcc 0
maxOcc 1
content simple
nillable true

element PTAGISData/Session/MRREvents/MRREvent/SequenceNumber
diagram P4MRR_p50.png
type xsd:int
properties
content simple

element PTAGISData/Session/MRREvents/MRREvent/SpawnYear
diagram P4MRR_p51.png
type restriction of xsd:string
properties
minOcc 0
maxOcc 1
content simple
nillable true
facets
Kind Value Annotation
maxLength 4

element PTAGISData/Session/MRREvents/MRREvent/SpeciesRunRearType
diagram P4MRR_p52.png
type restriction of xsd:string
properties
content simple
facets
Kind Value Annotation
minLength 1
maxLength 3

element PTAGISData/Session/MRREvents/MRREvent/Stock
diagram P4MRR_p53.png
type restriction of xsd:string
properties
minOcc 0
maxOcc 1
content simple
nillable true
facets
Kind Value Annotation
maxLength 15

element PTAGISData/Session/MRREvents/MRREvent/Tagger
diagram P4MRR_p54.png
type restriction of xsd:string
properties
minOcc 0
maxOcc 1
content simple
nillable true
facets
Kind Value Annotation
maxLength 30

element PTAGISData/Session/MRREvents/MRREvent/Weight
diagram P4MRR_p55.png
type xsd:decimal
properties
minOcc 0
maxOcc 1
content simple
nillable true

element PTAGISData/Session/MRREvents/MRREvent/TextComments
diagram P4MRR_p56.png
type restriction of xsd:string
properties
minOcc 0
maxOcc 1
content simple
nillable true
facets
Kind Value Annotation
maxLength 100

element PTAGISData/Session/MRREvents/MRREvent/SecondPITTag
diagram P4MRR_p57.png
type restriction of xsd:string
properties
minOcc 0
maxOcc 1
content simple
nillable true
facets
Kind Value Annotation
minLength 10
maxLength 15

element PTAGISData/Session/MRREvents/MRREvent/CWTag
diagram P4MRR_p58.png
type restriction of xsd:string
properties
minOcc 0
maxOcc 1
content simple
nillable true
facets
Kind Value Annotation
maxLength 50

element PTAGISData/Session/MRREvents/MRREvent/AcousticTag
diagram P4MRR_p59.png
type restriction of xsd:string
properties
minOcc 0
maxOcc 1
content simple
nillable true
facets
Kind Value Annotation
maxLength 50

element PTAGISData/Session/MRREvents/MRREvent/RadioTag
diagram P4MRR_p60.png
type restriction of xsd:string
properties
minOcc 0
maxOcc 1
content simple
nillable true
facets
Kind Value Annotation
maxLength 50

element PTAGISData/Session/MRREvents/MRREvent/GeneticID
diagram P4MRR_p61.png
type restriction of xsd:string
properties
minOcc 0
maxOcc 1
content simple
nillable true
facets
Kind Value Annotation
maxLength 50

element PTAGISData/Session/MRREvents/MRREvent/ScaleID
diagram P4MRR_p62.png
type restriction of xsd:string
properties
minOcc 0
maxOcc 1
content simple
nillable true
facets
Kind Value Annotation
maxLength 50

element PTAGISData/Session/MRREvents/MRREvent/OtherTag
diagram P4MRR_p63.png
type restriction of xsd:string
properties
minOcc 0
maxOcc 1
content simple
nillable true
facets
Kind Value Annotation
maxLength 50

element PTAGISData/Session/MRREvents/MRREvent/PDV1
diagram P4MRR_p64.png
type restriction of xsd:string
properties
minOcc 0
maxOcc 1
content simple
nillable true
facets
Kind Value Annotation
maxLength 50

element PTAGISData/Session/MRREvents/MRREvent/PDV2
diagram P4MRR_p65.png
type restriction of xsd:string
properties
minOcc 0
maxOcc 1
content simple
nillable true
facets
Kind Value Annotation
maxLength 50

element PTAGISData/Session/MRREvents/MRREvent/PDV3
diagram P4MRR_p66.png
type restriction of xsd:string
properties
minOcc 0
maxOcc 1
content simple
nillable true
facets
Kind Value Annotation
maxLength 50

element PTAGISData/Session/MRREvents/MRREvent/PDV4
diagram P4MRR_p67.png
type restriction of xsd:string
properties
minOcc 0
maxOcc 1
content simple
nillable true
facets
Kind Value Annotation
maxLength 50

element PTAGISData/Session/MRREvents/MRREvent/PDV5
diagram P4MRR_p68.png
type restriction of xsd:string
properties
minOcc 0
maxOcc 1
content simple
nillable true
facets
Kind Value Annotation
maxLength 50

element PTAGISData/Session/MRREvents/MRREvent/PDV6
diagram P4MRR_p69.png
type restriction of xsd:string
properties
minOcc 0
maxOcc 1
content simple
nillable true
facets
Kind Value Annotation
maxLength 50

element PTAGISData/Session/MRREvents/MRREvent/PDV7
diagram P4MRR_p70.png
type restriction of xsd:string
properties
minOcc 0
maxOcc 1
content simple
nillable true
facets
Kind Value Annotation
maxLength 50

element PTAGISData/Session/MRREvents/MRREvent/PDV8
diagram P4MRR_p71.png
type restriction of xsd:string
properties
minOcc 0
maxOcc 1
content simple
nillable true
facets
Kind Value Annotation
maxLength 50

element PTAGISData/Session/MRREvents/MRREvent/PDV9
diagram P4MRR_p72.png
type restriction of xsd:string
properties
minOcc 0
maxOcc 1
content simple
nillable true
facets
Kind Value Annotation
maxLength 50

element PTAGISData/Session/MRREvents/MRREvent/PDV10
diagram P4MRR_p73.png
type restriction of xsd:string
properties
minOcc 0
maxOcc 1
content simple
nillable true
facets
Kind Value Annotation
maxLength 50

element PTAGISData/Session/SessionProjectDefinedFields
diagram P4MRR_p74.png
properties
minOcc 0
maxOcc 1
content complex
nillable true

element PTAGISData/Session/SessionProjectDefinedFields/SessionProjectDefinedField
diagram P4MRR_p75.png
properties
minOcc 1
maxOcc unbounded
content complex

element PTAGISData/Session/SessionProjectDefinedFields/SessionProjectDefinedField/Label
diagram P4MRR_p76.png
type restriction of xsd:string
properties
content simple
facets
Kind Value Annotation
maxLength 50

element PTAGISData/Session/SessionProjectDefinedFields/SessionProjectDefinedField/PDVColumn
diagram P4MRR_p77.png
type restriction of xsd:string
properties
content simple
facets
Kind Value Annotation
maxLength 10

element PTAGISData/Session/SessionProjectDefinedFields/SessionProjectDefinedField/Definition
diagram P4MRR_p78.png
type restriction of xsd:string
properties
minOcc 0
maxOcc 1
content simple
nillable true
facets
Kind Value Annotation
maxLength 300

element PTAGISData/Session/DetailProjectDefinedFields
diagram P4MRR_p79.png
properties
minOcc 0
maxOcc 1
content complex
nillable true

element PTAGISData/Session/DetailProjectDefinedFields/DetailProjectDefinedField
diagram P4MRR_p80.png
properties
minOcc 1
maxOcc unbounded
content complex

element PTAGISData/Session/DetailProjectDefinedFields/DetailProjectDefinedField/Label
diagram P4MRR_p81.png
type restriction of xsd:string
properties
content simple
facets
Kind Value Annotation
maxLength 50

element PTAGISData/Session/DetailProjectDefinedFields/DetailProjectDefinedField/PDVColumn
diagram P4MRR_p82.png
type restriction of xsd:string
properties
content simple
facets
Kind Value Annotation
maxLength 10

element PTAGISData/Session/DetailProjectDefinedFields/DetailProjectDefinedField/Definition
diagram P4MRR_p83.png
type restriction of xsd:string
properties
minOcc 0
maxOcc 1
content simple
nillable true
facets
Kind Value Annotation
maxLength 300


XML Schema documentation generated by XMLSpy Schema Editor http://www.altova.com/xmlspy


Version: 1.07

Published: 9/6/2023